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

Function genFor

static/vuejs/vue.common.js:8598–8621  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

8596}
8597
8598function genFor (el) {
8599 var exp = el.for;
8600 var alias = el.alias;
8601 var iterator1 = el.iterator1 ? ("," + (el.iterator1)) : '';
8602 var iterator2 = el.iterator2 ? ("," + (el.iterator2)) : '';
8603
8604 if (
8605 process.env.NODE_ENV !== 'production' &&
8606 maybeComponent(el) && el.tag !== 'slot' && el.tag !== 'template' && !el.key
8607 ) {
8608 warn$3(
8609 "<" + (el.tag) + " v-for=\"" + alias + " in " + exp + "\">: component lists rendered with " +
8610 "v-for should have explicit keys. " +
8611 "See https://vuejs.org/guide/list.html#key for more info.",
8612 true /* tip */
8613 );
8614 }
8615
8616 el.forProcessed = true; // avoid recursion
8617 return "_l((" + exp + ")," +
8618 "function(" + alias + iterator1 + iterator2 + "){" +
8619 "return " + (genElement(el)) +
8620 '})'
8621}
8622
8623function genData (el) {
8624 var data = '{';

Callers 1

genElementFunction · 0.70

Calls 2

maybeComponentFunction · 0.70
genElementFunction · 0.70

Tested by

no test coverage detected