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 ) {
|
||||
var modifiedHandler = special.add.call( elem, handler, data, namespaces );
|
||||
if ( modifiedHandler && jQuery.isFunction( modifiedHandler ) ) {
|
||||
modifiedHandler.guid = handler.guid;
|
||||
modifiedHandler.guid = modifiedHandler.guid || handler.guid;
|
||||
handler = modifiedHandler;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue