diff options
Diffstat (limited to 'src/exports')
-rw-r--r-- | src/exports/global.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/exports/global.js b/src/exports/global.js index ace2cdddd..8eee5bb7f 100644 --- a/src/exports/global.js +++ b/src/exports/global.js @@ -1,6 +1,7 @@ define([ - "../core" -], function( jQuery ) { + "../core", + "../var/strundefined" +], function( jQuery, strundefined ) { var // Map over jQuery in case of overwrite @@ -24,6 +25,8 @@ jQuery.noConflict = function( deep ) { // Expose jQuery and $ identifiers, even in // AMD (#7102#comment:10, https://github.com/jquery/jquery/pull/557) // and CommonJS for browser emulators (#13566) -window.jQuery = window.$ = jQuery; +if ( typeof noGlobal === strundefined ) { + window.jQuery = window.$ = jQuery; +} }); |