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

Function isDirectChildOfTemplateFor

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

Source from the content-addressed store, hash-verified

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

Callers 1

isStaticFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected