Ajax: Support usage without jQuery.event

Fixes #15118
Closes gh-1588
This commit is contained in:
TJ VanToll
2014-05-30 09:48:43 -04:00
parent 97c803acfb
commit d41e81980e
2 changed files with 18 additions and 1 deletions

View File

@@ -536,7 +536,8 @@ jQuery.extend({
}
// We can fire global events as of now if asked to
fireGlobals = s.global;
// Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)
fireGlobals = jQuery.event && s.global;
// Watch for a new set of requests
if ( fireGlobals && jQuery.active++ === 0 ) {