Skip to content

Commit

Permalink
Update avalon.js
Browse files Browse the repository at this point in the history
修复DOMNodeRemoved事件发生时,对于元素的判断

之前的问题是在chrome下,无法判断其它节点的删除
  • Loading branch information
ilife5 committed Aug 20, 2014
1 parent 76ac2fc commit cfde5a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avalon.js
Original file line number Diff line number Diff line change
Expand Up @@ -3075,7 +3075,7 @@
elem.addEventListener("DOMNodeRemoved", function(e) {
if (e.target === this && !this.msRetain &&
//#441 chrome浏览器对文本域进行Ctrl+V操作,会触发DOMNodeRemoved事件
(window.chrome ? this.tagName === "INPUT" && e.relatedNode.nodeType === 1 : 1)) {
(window.chrome ? (this.tagName === "INPUT" ? e.relatedNode.nodeType === 1 : 1) : 1)) {
offTree()
}
})
Expand Down

0 comments on commit cfde5a3

Please sign in to comment.