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

Function isDirectChildOfTemplateFor

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

Source from the content-addressed store, hash-verified

8336}
8337
8338function isDirectChildOfTemplateFor (node) {
8339 while (node.parent) {
8340 node = node.parent;
8341 if (node.tag !== 'template') {
8342 return false
8343 }
8344 if (node.for) {
8345 return true
8346 }
8347 }
8348 return false
8349}
8350
8351/* */
8352

Callers 1

isStaticFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected