* Runtime helper for rendering static trees.
( index, isInFor )
| 3497 | * Runtime helper for rendering static trees. |
| 3498 | */ |
| 3499 | function 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. |
nothing calls this directly
no test coverage detected