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

Function markStatic$1

static/vuejs/vue.esm.js:8262–8283  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

8260}
8261
8262function 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
8285function markStaticRoots (node, isInFor) {
8286 if (node.type === 1) {

Callers 1

optimizeFunction · 0.70

Calls 1

isStaticFunction · 0.70

Tested by

no test coverage detected