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

Function markStatic

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

Source from the content-addressed store, hash-verified

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

Callers 2

renderStaticFunction · 0.70
markOnceFunction · 0.70

Calls 1

markStaticNodeFunction · 0.70

Tested by

no test coverage detected