Commit b8fc9d14 authored by timmywil's avatar timmywil

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

parent 657b197c
...@@ -109,11 +109,10 @@ jQuery.support = (function() { ...@@ -109,11 +109,10 @@ jQuery.support = (function() {
} }
if ( !div.addEventListener && div.attachEvent && div.fireEvent ) { if ( !div.addEventListener && div.attachEvent && div.fireEvent ) {
div.attachEvent( "onclick", function click() { div.attachEvent( "onclick", function() {
// Cloning a node shouldn't copy over any // Cloning a node shouldn't copy over any
// bound event handlers (IE does this) // bound event handlers (IE does this)
support.noCloneEvent = false; support.noCloneEvent = false;
div.detachEvent( "onclick", click );
}); });
div.cloneNode( true ).fireEvent( "onclick" ); div.cloneNode( true ).fireEvent( "onclick" );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment