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

Function markStatic

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

Source from the content-addressed store, hash-verified

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

Callers 2

renderStaticFunction · 0.70
markOnceFunction · 0.70

Calls 1

markStaticNodeFunction · 0.70

Tested by

no test coverage detected