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

Function processIfConditions

static/vuejs/vue.esm.js:8010–8023  ·  view source on GitHub ↗
(el, parent)

Source from the content-addressed store, hash-verified

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

Callers 1

parseFunction · 0.70

Calls 2

findPrevElementFunction · 0.70
addIfConditionFunction · 0.70

Tested by

no test coverage detected