mirror of
https://github.com/jquery/jquery.git
synced 2024-10-05 11:34:18 +00:00
only copy guid from handler to modifiedHandler if it does not already have one
This commit is contained in:
parent
aef1989ba7
commit
a4b8fed8ad
@ -66,7 +66,7 @@ jQuery.event = {
|
|||||||
if ( special.add ) {
|
if ( special.add ) {
|
||||||
var modifiedHandler = special.add.call( elem, handler, data, namespaces );
|
var modifiedHandler = special.add.call( elem, handler, data, namespaces );
|
||||||
if ( modifiedHandler && jQuery.isFunction( modifiedHandler ) ) {
|
if ( modifiedHandler && jQuery.isFunction( modifiedHandler ) ) {
|
||||||
modifiedHandler.guid = handler.guid;
|
modifiedHandler.guid = modifiedHandler.guid || handler.guid;
|
||||||
handler = modifiedHandler;
|
handler = modifiedHandler;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user