]> source.dussan.org Git - jquery.git/commitdiff
Calling jQuery() with apply would break things (namely in the SlickSpeed test suite).
authorJohn Resig <jeresig@gmail.com>
Fri, 29 Jun 2007 20:52:59 +0000 (20:52 +0000)
committerJohn Resig <jeresig@gmail.com>
Fri, 29 Jun 2007 20:52:59 +0000 (20:52 +0000)
src/jquery/jquery.js

index fe8b32bc5f57b2ac46e711a16cdb8f640d5b3480..e5e494adeda105979b30b30b3025691db303046a 100644 (file)
@@ -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);