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

Function isStatic

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

Source from the content-addressed store, hash-verified

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

Callers 1

markStatic$1Function · 0.70

Calls 1

Tested by

no test coverage detected