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-Url: http://git.asbjorn.it/?p=jquery.git;a=commitdiff_plain;h=534dbd660eaefbbc5827b1b61ba384e768562086 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 4807ce2..8b60abd 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)