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

Function isStatic

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

Source from the content-addressed store, hash-verified

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

Callers 1

markStatic$1Function · 0.70

Calls 1

Tested by

no test coverage detected