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

Function findPrevElement

static/vuejs/vue.esm.js:8025–8040  ·  view source on GitHub ↗
(children)

Source from the content-addressed store, hash-verified

8023}
8024
8025function findPrevElement (children) {
8026 var i = children.length;
8027 while (i--) {
8028 if (children[i].type === 1) {
8029 return children[i]
8030 } else {
8031 if (process.env.NODE_ENV !== 'production' && children[i].text !== ' ') {
8032 warn$2(
8033 "text \"" + (children[i].text.trim()) + "\" between v-if and v-else(-if) " +
8034 "will be ignored."
8035 );
8036 }
8037 children.pop();
8038 }
8039 }
8040}
8041
8042function addIfCondition (el, condition) {
8043 if (!el.ifConditions) {

Callers 1

processIfConditionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected