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