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

Function findPrevElement

static/vuejs/vue.js:8021–8036  ·  view source on GitHub ↗
(children)

Source from the content-addressed store, hash-verified

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

Callers 1

processIfConditionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected