* Date: @DATE
*/
-(function ( window, factory ) {
+(function( global, factory ) {
if ( typeof module === "object" && typeof module.exports === "object" ) {
// For CommonJS and CommonJS-like environments where a proper window is present,
// This accentuates the need for the creation of a real window
// e.g. var jQuery = require("jquery")(window);
// See ticket #14549 for more info
- module.exports = window.document ?
- factory( window ) :
+ module.exports = global.document ?
+ factory( global ) :
function( w ) {
if ( !w.document ) {
- throw new Error("jQuery requires a window with a document");
+ throw new Error( "jQuery requires a window with a document" );
}
return factory( w );
};
} else {
- factory( window );
+ factory( global );
}
// Pass this, window may not be defined yet
-}(this, function ( window ) {
+}(this, function( window ) {
// Can't do this because several apps including ASP.NET trace
// the stack via arguments.caller.callee and Firefox dies if