X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fevent%2Fevent.js;h=a3db2f3ab0bcb501fe85903d0175c4e253913390;hb=2897b1bd2383031b6764192dc1ccb1d1205139a3;hp=9b5feb1526c1bbf23306c0eb39de041fb152c17b;hpb=14aafdf3191ca5da0dbd3c3fa3856dcc5a52c7be;p=jquery.git diff --git a/src/event/event.js b/src/event/event.js index 9b5feb1..a3db2f3 100644 --- a/src/event/event.js +++ b/src/event/event.js @@ -32,8 +32,11 @@ jQuery.event = { } // Make sure that the function being executed has a unique ID - if ( !handler.guid ) + if ( !handler.guid ) { handler.guid = this.guid++; + // Don't forget to set guid for the original handler function + if (fn) fn.guid = handler.guid; + } // Init the element's event structure if (!element.$events)