Commit a4b8fed8 authored by Brandon Aaron's avatar Brandon Aaron

only copy guid from handler to modifiedHandler if it does not already have one

parent aef1989b
......@@ -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;
}
}
......
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