Make sure that there isn't an error if no event object exists. Fixes #8755.
This commit is contained in:
parent
5d70c6d797
commit
adef5c3550
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue