diff options
author | TJ VanToll <tj.vantoll@gmail.com> | 2014-05-30 09:48:43 -0400 |
---|---|---|
committer | TJ VanToll <tj.vantoll@gmail.com> | 2014-06-02 15:08:40 -0400 |
commit | d41e81980ea89e56c04eb14d8c27f4692b367604 (patch) | |
tree | 5036b7094c94375db9ce93d9a05d4a17bd32b71e /src/ajax.js | |
parent | 97c803acfb667f74774450e93666d9596f92bbf5 (diff) | |
download | jquery-d41e81980ea89e56c04eb14d8c27f4692b367604.tar.gz jquery-d41e81980ea89e56c04eb14d8c27f4692b367604.zip |
Ajax: Support usage without jQuery.event
Fixes #15118
Closes gh-1588
Diffstat (limited to 'src/ajax.js')
-rw-r--r-- | src/ajax.js | 3 |
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 ) { |