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

Function processFor

static/vuejs/vue.esm.js:7966–7989  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

7964}
7965
7966function processFor (el) {
7967 var exp;
7968 if ((exp = getAndRemoveAttr(el, 'v-for'))) {
7969 var inMatch = exp.match(forAliasRE);
7970 if (!inMatch) {
7971 process.env.NODE_ENV !== 'production' && warn$2(
7972 ("Invalid v-for expression: " + exp)
7973 );
7974 return
7975 }
7976 el.for = inMatch[2].trim();
7977 var alias = inMatch[1].trim();
7978 var iteratorMatch = alias.match(forIteratorRE);
7979 if (iteratorMatch) {
7980 el.alias = iteratorMatch[1].trim();
7981 el.iterator1 = iteratorMatch[2].trim();
7982 if (iteratorMatch[3]) {
7983 el.iterator2 = iteratorMatch[3].trim();
7984 }
7985 } else {
7986 el.alias = alias;
7987 }
7988 }
7989}
7990
7991function processIf (el) {
7992 var exp = getAndRemoveAttr(el, 'v-if');

Callers 1

parseFunction · 0.70

Calls 1

getAndRemoveAttrFunction · 0.70

Tested by

no test coverage detected