Skip to content

Commit

Permalink
fix getEachProxy BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
RubyLouvre committed Nov 18, 2014
1 parent a57bfbf commit 3ed758b
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 57 deletions.
7 changes: 5 additions & 2 deletions avalon.js
Original file line number Diff line number Diff line change
Expand Up @@ -1708,7 +1708,7 @@
if (tag === "tr") {
for (els = wrapper.children, i = 0; el = els[i++]; ) {
// IE6-8,如果动态生成tr元素,必须会在后面添加早已废弃caption的标签,其nodeName,innerHTML都为""
if (el.nodeName == "") {
if (el.nodeName === "") {
el.parentNode.removeChild(el)
i--
}
Expand Down Expand Up @@ -3674,7 +3674,7 @@
}
}
data.bound("change", updateVModel)
checkScan(element,function() {
checkScan(element, function() {
//先等到select里的option元素被扫描后,才根据model设置selected属性
registerSubscriber(data)
data.changed.call(element, evaluator(), data)
Expand Down Expand Up @@ -4084,6 +4084,9 @@
proxy[k] = source[k]
}
eachProxyPool.splice(i, 1)
proxy.$watch(param, function(val) {
data.$repeat.set(proxy.$index, val)
})
return proxy
}
}
Expand Down
24 changes: 12 additions & 12 deletions avalon.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions avalon.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -3287,6 +3287,9 @@
proxy[k] = source[k]
}
eachProxyPool.splice(i, 1)
proxy.$watch(param, function(val) {
data.$repeat.set(proxy.$index, val)
})
return proxy
}
}
Expand Down
Loading

0 comments on commit 3ed758b

Please sign in to comment.