MCPcopy
hub / github.com/fanmingming/live / processIf

Function processIf

m3u8/vue.js:10032–10049  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

10030 }
10031
10032 function processIf (el) {
10033 var exp = getAndRemoveAttr(el, 'v-if');
10034 if (exp) {
10035 el.if = exp;
10036 addIfCondition(el, {
10037 exp: exp,
10038 block: el
10039 });
10040 } else {
10041 if (getAndRemoveAttr(el, 'v-else') != null) {
10042 el.else = true;
10043 }
10044 var elseif = getAndRemoveAttr(el, 'v-else-if');
10045 if (elseif) {
10046 el.elseif = elseif;
10047 }
10048 }
10049 }
10050
10051 function processIfConditions (el, parent) {
10052 var prev = findPrevElement(parent.children);

Callers 1

parseFunction · 0.85

Calls 2

getAndRemoveAttrFunction · 0.85
addIfConditionFunction · 0.85

Tested by

no test coverage detected