(el)
| 7966 | } |
| 7967 | |
| 7968 | function 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 | |
| 7993 | function processIf (el) { |
| 7994 | var exp = getAndRemoveAttr(el, 'v-if'); |
no test coverage detected