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

Function isDirectChildOfTemplateFor

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

Source from the content-addressed store, hash-verified

8330}
8331
8332function isDirectChildOfTemplateFor (node) {
8333 while (node.parent) {
8334 node = node.parent;
8335 if (node.tag !== 'template') {
8336 return false
8337 }
8338 if (node.for) {
8339 return true
8340 }
8341 }
8342 return false
8343}
8344
8345/* */
8346

Callers 1

isStaticFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected