This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
wcui
Archived
1
0
Fork 0

修复框架节点扫描的bug(非常严重,会导致死循环)

old
宇天 2018-03-15 16:38:02 +08:00
parent c0f5d3395c
commit 124b6591ba
1 changed files with 3 additions and 3 deletions

View File

@ -239,13 +239,13 @@
if ($elem === DOC.body) {
scanTag($elem, [])
} else {
var $parent = null
while (($parent = $elem.parentNode)) {
var $parent = $elem
while (($parent = $parent.parentNode)) {
if ($parent.anotctrl) {
scanTag($elem.parentNode, [VMODELS[$parent.anotctrl]])
break
}
}
scanTag($elem.parentNode, $parent ? [VMODELS[$parent.anotctrl]] : [])
}
}
return vm