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

Function markStatic

static/vuejs/vue.runtime.common.js:3533–3547  ·  view source on GitHub ↗
(
  tree,
  key,
  isOnce
)

Source from the content-addressed store, hash-verified

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

Callers 2

renderStaticFunction · 0.70
markOnceFunction · 0.70

Calls 1

markStaticNodeFunction · 0.70

Tested by

no test coverage detected