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

Function genChildren

static/vuejs/vue.js:8739–8753  ·  view source on GitHub ↗
(el, checkSkip)

Source from the content-addressed store, hash-verified

8737}
8738
8739function genChildren (el, checkSkip) {
8740 var children = el.children;
8741 if (children.length) {
8742 var el$1 = children[0];
8743 // optimize single v-for
8744 if (children.length === 1 &&
8745 el$1.for &&
8746 el$1.tag !== 'template' &&
8747 el$1.tag !== 'slot') {
8748 return genElement(el$1)
8749 }
8750 var normalizationType = checkSkip ? getNormalizationType(children) : 0;
8751 return ("[" + (children.map(genNode).join(',')) + "]" + (normalizationType ? ("," + normalizationType) : ''))
8752 }
8753}
8754
8755// determine the normalization needed for the children array.
8756// 0: no normalization needed

Callers 4

genElementFunction · 0.70
genScopedSlotFunction · 0.70
genSlotFunction · 0.70
genComponentFunction · 0.70

Calls 2

genElementFunction · 0.70
getNormalizationTypeFunction · 0.70

Tested by

no test coverage detected