aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ajax.js')
-rw-r--r--src/ajax.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ajax.js b/src/ajax.js
index 502b33b2a..0d0644b92 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -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 ) {