mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 21:15:01 -05:00
Build: fix tests in AMD mode
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
define([
|
||||
"../core",
|
||||
"./var/rsingleTag",
|
||||
"./support",
|
||||
|
||||
"../manipulation" // buildFragment
|
||||
], function( jQuery, rsingleTag, support ) {
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
define([
|
||||
"../var/support"
|
||||
], function( jQuery, support ) {
|
||||
], function( support ) {
|
||||
// window.document is used here as it's before the sandboxed document
|
||||
support.createHTMLDocument = !!window.document.implementation.createHTMLDocument;
|
||||
|
||||
return support;
|
||||
});
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
define([
|
||||
"../core"
|
||||
], function( jQuery ) {
|
||||
|
||||
var
|
||||
// Map over jQuery in case of overwrite
|
||||
_jQuery = window.jQuery,
|
||||
@@ -27,5 +23,3 @@ jQuery.noConflict = function( deep ) {
|
||||
if ( !noGlobal ) {
|
||||
window.jQuery = window.$ = jQuery;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
5
src/jquery.js
vendored
5
src/jquery.js
vendored
@@ -28,10 +28,9 @@ define([
|
||||
"./offset",
|
||||
"./dimensions",
|
||||
"./deprecated",
|
||||
"./exports/amd",
|
||||
"./exports/global"
|
||||
"./exports/amd"
|
||||
], function( jQuery ) {
|
||||
|
||||
return jQuery;
|
||||
return (window.jQuery = window.$ = jQuery);
|
||||
|
||||
});
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
return jQuery;
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user