MCPcopy Create free account
hub / github.com/TruthHun/BookStack / isStatic

Function isStatic

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

Source from the content-addressed store, hash-verified

8313}
8314
8315function isStatic (node) {
8316 if (node.type === 2) { // expression
8317 return false
8318 }
8319 if (node.type === 3) { // text
8320 return true
8321 }
8322 return !!(node.pre || (
8323 !node.hasBindings && // no dynamic bindings
8324 !node.if && !node.for && // not v-if or v-for or v-else
8325 !isBuiltInTag(node.tag) && // not a built-in
8326 isPlatformReservedTag(node.tag) && // not a component
8327 !isDirectChildOfTemplateFor(node) &&
8328 Object.keys(node).every(isStaticKey)
8329 ))
8330}
8331
8332function isDirectChildOfTemplateFor (node) {
8333 while (node.parent) {

Callers 1

markStatic$1Function · 0.70

Calls 1

Tested by

no test coverage detected