MCPcopy Create free account
hub / github.com/TruthHun/BookStack / markStatic$1

Function markStatic$1

static/vuejs/vue.common.js:8264–8285  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

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

Callers 1

optimizeFunction · 0.70

Calls 1

isStaticFunction · 0.70

Tested by

no test coverage detected