mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
detachEvent is unnecessary since we're nulling div. Fixes #8873.
This commit is contained in:
parent
657b197c19
commit
b8fc9d14a1
@ -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" );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user