]> source.dussan.org Git - jquery.git/commitdiff
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 2e64f66c0d0839d89b5b34bfe4ca4ff100ba0275..9c2f985ebeebc8f0d24fc492b771bfece2f6de30 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 8089e4e6b11bc95065ffd490d6f91dd5531c842b..9eb8377e135f5ea958f4efd9bc594f22524a38f6 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);