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

Function processIf

static/vuejs/vue.js:7987–8004  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

7985}
7986
7987function processIf (el) {
7988 var exp = getAndRemoveAttr(el, 'v-if');
7989 if (exp) {
7990 el.if = exp;
7991 addIfCondition(el, {
7992 exp: exp,
7993 block: el
7994 });
7995 } else {
7996 if (getAndRemoveAttr(el, 'v-else') != null) {
7997 el.else = true;
7998 }
7999 var elseif = getAndRemoveAttr(el, 'v-else-if');
8000 if (elseif) {
8001 el.elseif = elseif;
8002 }
8003 }
8004}
8005
8006function processIfConditions (el, parent) {
8007 var prev = findPrevElement(parent.children);

Callers 1

parseFunction · 0.70

Calls 2

getAndRemoveAttrFunction · 0.70
addIfConditionFunction · 0.70

Tested by

no test coverage detected