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

Function processIfConditions

static/vuejs/vue.common.js:8012–8025  ·  view source on GitHub ↗
(el, parent)

Source from the content-addressed store, hash-verified

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

Callers 1

parseFunction · 0.70

Calls 2

findPrevElementFunction · 0.70
addIfConditionFunction · 0.70

Tested by

no test coverage detected