Skip to content

Commit

Permalink
Make sure that there isn't an error if no event object exists. Fixes …
Browse files Browse the repository at this point in the history
…#8755.
  • Loading branch information
jeresig committed Apr 17, 2011
1 parent 5d70c6d commit adef5c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/event.js
Expand Up @@ -63,7 +63,7 @@ jQuery.event = {
elemData.handle = eventHandle = function( e ) {
// Discard the second event of a jQuery.event.trigger() and
// when an event is called after a page has unloaded
return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ?
return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ?
jQuery.event.handle.apply( eventHandle.elem, arguments ) :
undefined;
};
Expand Down

0 comments on commit adef5c3

Please sign in to comment.