Skip to content
Permalink
Browse files

Make sure that there isn't an error if no event object exists. Fixes …

…#8755.
  • Loading branch information...
jeresig committed Apr 17, 2011
1 parent 5d70c6d commit adef5c3550141960089e2634619ef028931f4765
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/event.js
@@ -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;
};

0 comments on commit adef5c3

Please sign in to comment.
You can’t perform that action at this time.