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

Function closeElement

vue.js:13199–13213  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

13197
13198 //克隆节点
13199 function closeElement(element) {
13200 // check pre state
13201 if (element.pre) { //判断标签是否还有 v-pre 指令
13202 inVPre = false; //标记 标签是否还有 v-pre 指令,如果没有则是false
13203 }
13204 if (platformIsPreTag(element.tag)) { // 判断标签是否是pre 如果是则返回真
13205 inPre = false; // 判断标签是否是pre 如果是则返回真
13206 }
13207 console.log(postTransforms)
13208
13209 // apply post-transforms 应用转化后 postTransforms数组为空所以不执行这里
13210 for (var i = 0; i < postTransforms.length; i++) {
13211 postTransforms[i](element, options);
13212 }
13213 }
13214 console.log(currentParent)
13215
13216

Callers 1

parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected