Commit adef5c35 authored by John Resig's avatar John Resig

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

parent 5d70c6d7
...@@ -63,7 +63,7 @@ jQuery.event = { ...@@ -63,7 +63,7 @@ jQuery.event = {
elemData.handle = eventHandle = function( e ) { elemData.handle = eventHandle = function( e ) {
// Discard the second event of a jQuery.event.trigger() and // Discard the second event of a jQuery.event.trigger() and
// when an event is called after a page has unloaded // 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 ) : jQuery.event.handle.apply( eventHandle.elem, arguments ) :
undefined; undefined;
}; };
......
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