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

Function findPrevElement

static/vuejs/vue.common.js:8027–8042  ·  view source on GitHub ↗
(children)

Source from the content-addressed store, hash-verified

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

Callers 1

processIfConditionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected