MCPcopy Create free account
hub / github.com/TruthHun/BookStack / markStatic

Function markStatic

static/vuejs/vue.esm.js:3535–3549  ·  view source on GitHub ↗
(
  tree,
  key,
  isOnce
)

Source from the content-addressed store, hash-verified

3533}
3534
3535function markStatic (
3536 tree,
3537 key,
3538 isOnce
3539) {
3540 if (Array.isArray(tree)) {
3541 for (var i = 0; i < tree.length; i++) {
3542 if (tree[i] && typeof tree[i] !== 'string') {
3543 markStaticNode(tree[i], (key + "_" + i), isOnce);
3544 }
3545 }
3546 } else {
3547 markStaticNode(tree, key, isOnce);
3548 }
3549}
3550
3551function markStaticNode (node, key, isOnce) {
3552 node.isStatic = true;

Callers 2

renderStaticFunction · 0.70
markOnceFunction · 0.70

Calls 1

markStaticNodeFunction · 0.70

Tested by

no test coverage detected