* Runtime helper for v-once. v的运行时助手。 * Effectively it means marking the node as static with a unique key. * 实际上,这意味着使用唯一键将节点标记为静态。 * 标志 v-once. 指令
(tree,
index,
key)
| 5638 | * 标志 v-once. 指令 |
| 5639 | */ |
| 5640 | function markOnce(tree, |
| 5641 | index, |
| 5642 | key) { |
| 5643 | //循环标志静态的vonde 虚拟dom |
| 5644 | markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true); |
| 5645 | return tree |
| 5646 | } |
| 5647 | |
| 5648 | //循环标志静态的vonde 虚拟dom |
| 5649 | function markStatic(tree, //树 |
nothing calls this directly
no test coverage detected