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

Function renderStatic

static/vuejs/vue.js:3505–3522  ·  view source on GitHub ↗

* Runtime helper for rendering static trees.

(
  index,
  isInFor
)

Source from the content-addressed store, hash-verified

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