]> source.dussan.org Git - jquery.git/commitdiff
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 4807ce27eb23c3ca3aca36a9c5612a6f3fbb6c44..8b60abd264c974e3ec69b42db517adc498d1fec5 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)