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

Function renderStatic

static/vuejs/vue.runtime.esm.js:3499–3516  ·  view source on GitHub ↗

* Runtime helper for rendering static trees.

(
  index,
  isInFor
)

Source from the content-addressed store, hash-verified

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