From cfde5a361c9af52a2c7d3ef1430a194160078d05 Mon Sep 17 00:00:00 2001 From: star Date: Thu, 21 Aug 2014 00:00:19 +0800 Subject: [PATCH] Update avalon.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复DOMNodeRemoved事件发生时,对于元素的判断 之前的问题是在chrome下,无法判断其它节点的删除 --- avalon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avalon.js b/avalon.js index 699e5d8a3..10d328763 100644 --- a/avalon.js +++ b/avalon.js @@ -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() } })