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

Function processIfConditions

static/vuejs/vue.js:8006–8019  ·  view source on GitHub ↗
(el, parent)

Source from the content-addressed store, hash-verified

8004}
8005
8006function processIfConditions (el, parent) {
8007 var prev = findPrevElement(parent.children);
8008 if (prev && prev.if) {
8009 addIfCondition(prev, {
8010 exp: el.elseif,
8011 block: el
8012 });
8013 } else {
8014 warn$2(
8015 "v-" + (el.elseif ? ('else-if="' + el.elseif + '"') : 'else') + " " +
8016 "used on element <" + (el.tag) + "> without corresponding v-if."
8017 );
8018 }
8019}
8020
8021function findPrevElement (children) {
8022 var i = children.length;

Callers 1

parseFunction · 0.70

Calls 2

findPrevElementFunction · 0.70
addIfConditionFunction · 0.70

Tested by

no test coverage detected