From: John Resig Date: Fri, 29 Jun 2007 20:52:59 +0000 (+0000) Subject: Calling jQuery() with apply would break things (namely in the SlickSpeed test suite). X-Git-Tag: 1.1.3~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7088b509cf1acad11d2884d95a83badeb15d1e52;p=jquery.git Calling jQuery() with apply would break things (namely in the SlickSpeed test suite). --- 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);