aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-06-29 20:52:59 +0000
committerJohn Resig <jeresig@gmail.com>2007-06-29 20:52:59 +0000
commit7088b509cf1acad11d2884d95a83badeb15d1e52 (patch)
tree2b8dc2d9d5ef50a9e598a55b7dbdbc7a08ebdc59 /src
parent28c9c6a805f089bee65cb4c20ad4234c15284218 (diff)
downloadjquery-7088b509cf1acad11d2884d95a83badeb15d1e52.tar.gz
jquery-7088b509cf1acad11d2884d95a83badeb15d1e52.zip
Calling jQuery() with apply would break things (namely in the SlickSpeed test suite).
Diffstat (limited to 'src')
-rw-r--r--src/jquery/jquery.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js
index fe8b32bc5..e5e494ade 100644
--- a/src/jquery/jquery.js
+++ b/src/jquery/jquery.js
@@ -24,7 +24,7 @@ window.undefined = window.undefined;
*/
var jQuery = function(a,c) {
// If the context is global, return a new object
- if ( window == this )
+ if ( window == this || !this.init )
return new jQuery(a,c);
return this.init(a,c);