mirror of
https://github.com/jquery/jquery.git
synced 2026-01-24 15:38:19 -05:00
detachEvent is unnecessary since we're nulling div. Fixes #8873.
This commit is contained in:
@@ -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" );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user