MCPcopy Create free account
hub / github.com/ygs-code/vue / findPrevElement

Function findPrevElement

vue.js:13693–13708  ·  view source on GitHub ↗
(children)

Source from the content-addressed store, hash-verified

13691 }
13692 //找到上一个节点
13693 function findPrevElement(children) {
13694 var i = children.length;
13695 while (i--) {
13696 if (children[i].type === 1) {
13697 return children[i]
13698 } else {//如果是其他节点则删除
13699 if ("development" !== 'production' && children[i].text !== ' ') {
13700 warn$2(
13701 "text \"" + (children[i].text.trim()) + "\" between v-if and v-else(-if) " +
13702 "will be ignored."
13703 );
13704 }
13705 children.pop();
13706 }
13707 }
13708 }
13709
13710 //为if指令添加标记
13711 function addIfCondition(

Callers 1

processIfConditionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected