// upon in the Node module world.
module.exports = jQuery;
} else {
- // Otherwise expose jQuery to the global object as usual
- window.jQuery = window.$ = 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
define( "jquery", [], function () { return jQuery; } );
}
}
+
+// If there is a window object, define a jQuery and $
+if ( typeof window === "object" ) {
+ window.jQuery = window.$ = jQuery;
+}