Strips IIFEs from modules; Always require built jQuery for tests.

This commit is contained in:
Rick Waldron
2012-06-04 12:48:18 -04:00
parent 9a3046c375
commit 7c23b77af2
47 changed files with 210 additions and 323 deletions

View File

@@ -1,7 +1,18 @@
var jQuery = (function() {
// Use the correct document accordingly with window argument (sandbox)
var document = window.document,
navigator = window.navigator,
location = window.location,
// Define a local copy of jQuery
var jQuery = function( selector, context ) {
// Save a reference to some core methods
toString = Object.prototype.toString,
hasOwn = Object.prototype.hasOwnProperty,
push = Array.prototype.push,
slice = Array.prototype.slice,
trim = String.prototype.trim,
indexOf = Array.prototype.indexOf,
// Define a local copy of jQuery
jQuery = function( selector, context ) {
// The jQuery object is actually just the init constructor 'enhanced'
return new jQuery.fn.init( selector, context, rootjQuery );
},
@@ -71,14 +82,6 @@ var jQuery = function( selector, context ) {
jQuery.ready();
},
// Save a reference to some core methods
toString = Object.prototype.toString,
hasOwn = Object.prototype.hasOwnProperty,
push = Array.prototype.push,
slice = Array.prototype.slice,
trim = String.prototype.trim,
indexOf = Array.prototype.indexOf,
// [[Class]] -> type pairs
class2type = {};
@@ -933,7 +936,3 @@ function doScrollCheck() {
// and execute any waiting functions
jQuery.ready();
}
return jQuery;
})();