aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-08-21 07:00:06 +0000
committerJohn Resig <jeresig@gmail.com>2007-08-21 07:00:06 +0000
commitc8bd6e0a4aef14ad4808a63fc106849918ea4666 (patch)
tree58cca8b20088d0710c0f7a94726c02cf1ab667c9
parentb6d920cf05fae3dcfe515166013ce39411ac5e16 (diff)
downloadjquery-c8bd6e0a4aef14ad4808a63fc106849918ea4666.tar.gz
jquery-c8bd6e0a4aef14ad4808a63fc106849918ea4666.zip
You can now assign jQuery to random namespaces - very cool. (Bug #1393)
-rw-r--r--src/intro.js2
-rw-r--r--src/jquery/jquery.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/intro.js b/src/intro.js
index 2e64f66c0..9c2f985eb 100644
--- a/src/intro.js
+++ b/src/intro.js
@@ -1,2 +1,2 @@
// prevent execution of jQuery if included more than once
-if(typeof window.jQuery == "undefined") (function(){
+if ( typeof jQuery == "undefined" ) (function(){
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js
index 8089e4e6b..9eb8377e1 100644
--- a/src/jquery/jquery.js
+++ b/src/jquery/jquery.js
@@ -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);