From 7088b509cf1acad11d2884d95a83badeb15d1e52 Mon Sep 17 00:00:00 2001 From: John Resig Date: Fri, 29 Jun 2007 20:52:59 +0000 Subject: [PATCH] Calling jQuery() with apply would break things (namely in the SlickSpeed test suite). --- src/jquery/jquery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index fe8b32b..e5e494a 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); -- 1.7.10.4