Remove .hyphen property from tests (left behind in refactoring)
[jquery.git] / src / exports.js
blob88def50ba37b475d82c158024004dfd49c80e169
1 // Expose jQuery to the global object
2 window.jQuery = window.$ = jQuery;
4 // Expose jQuery as an AMD module, but only for AMD loaders that
5 // understand the issues with loading multiple versions of jQuery
6 // in a page that all might call define(). The loader will indicate
7 // they have special allowances for multiple jQuery versions by
8 // specifying define.amd.jQuery = true. Register as a named module,
9 // since jQuery can be concatenated with other files that may use define,
10 // but not use a proper concatenation script that understands anonymous
11 // AMD modules. A named AMD is safest and most robust way to register.
12 // Lowercase jquery is used because AMD module names are derived from
13 // file names, and jQuery is normally delivered in a lowercase file name.
14 // Do this after creating the global so that if an AMD module wants to call
15 // noConflict to hide this version of jQuery, it will work.
16 if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
17         define( "jquery", [], function () { return jQuery; } );