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