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

Function processIf

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

Source from the content-addressed store, hash-verified

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

Callers 1

parseFunction · 0.70

Calls 2

getAndRemoveAttrFunction · 0.70
addIfConditionFunction · 0.70

Tested by

no test coverage detected