Permalink
Browse files

Calling jQuery() with apply would break things (namely in the SlickSp…

…eed test suite).
  • Loading branch information...
1 parent 28c9c6a commit 7088b509cf1acad11d2884d95a83badeb15d1e52 @jeresig jeresig committed Jun 29, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);

0 comments on commit 7088b50

Please sign in to comment.