Calling jQuery() with apply would break things (namely in the SlickSpeed test suite).

This commit is contained in:
John Resig 2007-06-29 20:52:59 +00:00
parent 28c9c6a805
commit 7088b509cf

View 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);