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

1.7/enhancement_8685
timmywil 2011-05-25 15:08:37 -04:00
parent 657b197c19
commit b8fc9d14a1
1 changed files with 1 additions and 2 deletions

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" );
}