detachEvent is unnecessary since we're nulling div. Fixes #8873.

This commit is contained in:
timmywil 2011-05-25 15:08:37 -04:00
parent 657b197c19
commit b8fc9d14a1

View File

@ -109,11 +109,10 @@ jQuery.support = (function() {
}
if ( !div.addEventListener && div.attachEvent && div.fireEvent ) {
div.attachEvent( "onclick", function click() {
div.attachEvent( "onclick", function() {
// Cloning a node shouldn't copy over any
// bound event handlers (IE does this)
support.noCloneEvent = false;
div.detachEvent( "onclick", click );
});
div.cloneNode( true ).fireEvent( "onclick" );
}