From: Colin Snover Date: Mon, 7 Feb 2011 16:56:48 +0000 (-0600) Subject: Update jQuery.support.noCloneEvent test to function properly in IE9. Fixes #8052... X-Git-Tag: 1.5.1rc1~47 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=534dbd660eaefbbc5827b1b61ba384e768562086;p=jquery.git Update jQuery.support.noCloneEvent test to function properly in IE9. Fixes #8052. 1.5-stable --- diff --git a/src/support.js b/src/support.js index 4807ce27e..8b60abd26 100644 --- a/src/support.js +++ b/src/support.js @@ -114,7 +114,7 @@ jQuery.support.deleteExpando = false; } - if ( div.attachEvent && div.fireEvent ) { + if ( !div.addEventListener && div.attachEvent && div.fireEvent ) { div.attachEvent("onclick", function click() { // Cloning a node shouldn't copy over any // bound event handlers (IE does this)