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

Function markStatic$1

static/vuejs/vue.js:8258–8279  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

8256}
8257
8258function 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
8281function markStaticRoots (node, isInFor) {
8282 if (node.type === 1) {

Callers 1

optimizeFunction · 0.70

Calls 1

isStaticFunction · 0.70

Tested by

no test coverage detected