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

Function checkInFor

vue.js:13964–13973  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

13962
13963 //检查当前虚拟dom vonde 是否有for指令,或者父组件是否有for指令
13964 function checkInFor(el) {
13965 var parent = el;
13966 while (parent) {
13967 if (parent.for !== undefined) {
13968 return true
13969 }
13970 parent = parent.parent;
13971 }
13972 return false
13973 }
13974
13975 //把字符串中的对象拆分成 对象比如 data.object.info.age 变成对象{object:true,info:true,age:true} 返回出去
13976 function parseModifiers(name) {

Callers 1

processRefFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected