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

Function processFor

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

Source from the content-addressed store, hash-verified

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

Callers 1

parseFunction · 0.70

Calls 1

getAndRemoveAttrFunction · 0.70

Tested by

no test coverage detected