Commit 7088b509 authored by John Resig's avatar John Resig

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

parent 28c9c6a8
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment