Update jQuery.support.noCloneEvent test to function properly in IE9. Fixes #8052...
authorColin Snover <github.com@zetafleet.com>
Mon, 7 Feb 2011 16:56:48 +0000 (10:56 -0600)
committerColin Snover <github.com@zetafleet.com>
Mon, 7 Feb 2011 16:56:48 +0000 (10:56 -0600)
src/support.js

index 4807ce2..8b60abd 100644 (file)
                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)