Update jQuery.support.noCloneEvent test to function properly in IE9. Fixes #8052. 1.5-stable

This commit is contained in:
Colin Snover 2011-02-07 10:56:48 -06:00
parent 8805f1373d
commit 534dbd660e

View file

@ -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)