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

Function renderStatic

static/vuejs/vue.esm.js:3503–3520  ·  view source on GitHub ↗

* Runtime helper for rendering static trees.

(
  index,
  isInFor
)

Source from the content-addressed store, hash-verified

3501 * Runtime helper for rendering static trees.
3502 */
3503function renderStatic (
3504 index,
3505 isInFor
3506) {
3507 var tree = this._staticTrees[index];
3508 // if has already-rendered static tree and not inside v-for,
3509 // we can reuse the same tree by doing a shallow clone.
3510 if (tree && !isInFor) {
3511 return Array.isArray(tree)
3512 ? cloneVNodes(tree)
3513 : cloneVNode(tree)
3514 }
3515 // otherwise, render a fresh tree.
3516 tree = this._staticTrees[index] =
3517 this.$options.staticRenderFns[index].call(this._renderProxy);
3518 markStatic(tree, ("__static__" + index), false);
3519 return tree
3520}
3521
3522/**
3523 * Runtime helper for v-once.

Callers

nothing calls this directly

Calls 3

cloneVNodesFunction · 0.70
cloneVNodeFunction · 0.70
markStaticFunction · 0.70

Tested by

no test coverage detected