Initial OpenECOMP policy/engine commit
[policy/engine.git] / ecomp-sdk-app / src / main / webapp / app / policyApp / libs / bower_components / jquery / src / exports / global.js
1 define([
2         "../core",
3         "../var/strundefined"
4 ], function( jQuery, strundefined ) {
5
6 var
7         // Map over jQuery in case of overwrite
8         _jQuery = window.jQuery,
9
10         // Map over the $ in case of overwrite
11         _$ = window.$;
12
13 jQuery.noConflict = function( deep ) {
14         if ( window.$ === jQuery ) {
15                 window.$ = _$;
16         }
17
18         if ( deep && window.jQuery === jQuery ) {
19                 window.jQuery = _jQuery;
20         }
21
22         return jQuery;
23 };
24
25 // Expose jQuery and $ identifiers, even in AMD
26 // (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
27 // and CommonJS for browser emulators (#13566)
28 if ( typeof noGlobal === strundefined ) {
29         window.jQuery = window.$ = jQuery;
30 }
31
32 });