mirror of
https://github.com/jquery/jquery.git
synced 2026-02-02 21:15:09 -05:00
When converting the source to AMD, don't forget to AMD
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
define([
|
||||
"../core"
|
||||
], function( jQuery ) {
|
||||
|
||||
// Register as a named AMD module, since jQuery can be concatenated with other
|
||||
// files that may use define, but not via a proper concatenation script that
|
||||
// understands anonymous AMD modules. A named AMD is safest and most robust
|
||||
@@ -9,4 +13,6 @@ if ( typeof define === "function" && define.amd ) {
|
||||
define( "jquery", [], function() {
|
||||
return jQuery;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
3
src/jquery.js
vendored
3
src/jquery.js
vendored
@@ -27,7 +27,8 @@ define([
|
||||
"./effects/animated-selector",
|
||||
"./offset",
|
||||
"./dimensions",
|
||||
"./deprecated"
|
||||
"./deprecated",
|
||||
"./exports/amd"
|
||||
], function( jQuery ) {
|
||||
|
||||
// Expose jQuery and $ identifiers, even in
|
||||
|
||||
Reference in New Issue
Block a user