1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/dashboard-ui/bower_components/jquery/src/exports/global.js

35 lines
608 B
JavaScript
Raw Normal View History

2016-09-23 02:57:24 -04:00
define( [
"../core"
], function( jQuery, noGlobal ) {
2016-06-11 11:55:39 -04:00
2016-09-23 02:57:24 -04:00
"use strict";
2016-06-11 11:55:39 -04:00
2015-06-26 11:53:49 -04:00
var
2016-01-09 13:36:35 -05:00
2015-06-26 11:53:49 -04:00
// Map over jQuery in case of overwrite
_jQuery = window.jQuery,
// Map over the $ in case of overwrite
_$ = window.$;
jQuery.noConflict = function( deep ) {
if ( window.$ === jQuery ) {
window.$ = _$;
}
if ( deep && window.jQuery === jQuery ) {
window.jQuery = _jQuery;
}
return jQuery;
};
// Expose jQuery and $ identifiers, even in AMD
// (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
// and CommonJS for browser emulators (#13566)
2016-01-09 13:36:35 -05:00
if ( !noGlobal ) {
2015-06-26 11:53:49 -04:00
window.jQuery = window.$ = jQuery;
}
2016-09-23 02:57:24 -04:00
} );