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

Function processIf

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

Source from the content-addressed store, hash-verified

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

Callers 1

parseFunction · 0.70

Calls 2

getAndRemoveAttrFunction · 0.70
addIfConditionFunction · 0.70

Tested by

no test coverage detected