| 8256 | } |
| 8257 | |
| 8258 | function markStatic$1 (node) { |
| 8259 | node.static = isStatic(node); |
| 8260 | if (node.type === 1) { |
| 8261 | // do not make component slot content static. this avoids |
| 8262 | // 1. components not able to mutate slot nodes |
| 8263 | // 2. static slot content fails for hot-reloading |
| 8264 | if ( |
| 8265 | !isPlatformReservedTag(node.tag) && |
| 8266 | node.tag !== 'slot' && |
| 8267 | node.attrsMap['inline-template'] == null |
| 8268 | ) { |
| 8269 | return |
| 8270 | } |
| 8271 | for (var i = 0, l = node.children.length; i < l; i++) { |
| 8272 | var child = node.children[i]; |
| 8273 | markStatic$1(child); |
| 8274 | if (!child.static) { |
| 8275 | node.static = false; |
| 8276 | } |
| 8277 | } |
| 8278 | } |
| 8279 | } |
| 8280 | |
| 8281 | function markStaticRoots (node, isInFor) { |
| 8282 | if (node.type === 1) { |