Build: fix tests in AMD mode

This commit is contained in:
Timmy Willison
2014-12-09 15:39:24 -05:00
parent 58c2460821
commit 6051609df3
8 changed files with 32 additions and 32 deletions

View File

@@ -1,6 +1,8 @@
define([
"../core",
"./var/rsingleTag",
"./support",
"../manipulation" // buildFragment
], function( jQuery, rsingleTag, support ) {

View File

@@ -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;
});

View File

@@ -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
View File

@@ -28,10 +28,9 @@ define([
"./offset",
"./dimensions",
"./deprecated",
"./exports/amd",
"./exports/global"
"./exports/amd"
], function( jQuery ) {
return jQuery;
return (window.jQuery = window.$ = jQuery);
});

View File

@@ -1 +1,2 @@
return jQuery;
}));