You can now assign jQuery to random namespaces - very cool. (Bug #1393)
authorJohn Resig <jeresig@gmail.com>
Tue, 21 Aug 2007 07:00:06 +0000 (07:00 +0000)
committerJohn Resig <jeresig@gmail.com>
Tue, 21 Aug 2007 07:00:06 +0000 (07:00 +0000)
src/intro.js
src/jquery/jquery.js

index 2e64f66..9c2f985 100644 (file)
@@ -1,2 +1,2 @@
 // prevent execution of jQuery if included more than once
-if(typeof window.jQuery == "undefined") (function(){
+if ( typeof jQuery == "undefined" ) (function(){
index 8089e4e..9eb8377 100644 (file)
@@ -19,7 +19,7 @@
  * @param jQuery|Element|Array<Element> c context
  * @cat Core
  */
-window.jQuery = function(a,c) {
+var jQuery = window.jQuery = function(a,c) {
        // If the context is global, return a new object
        if ( window == this || !this.init )
                return new jQuery(a,c);