Calling jQuery() with apply would break things (namely in the SlickSpeed test suite).
This commit is contained in:
parent
28c9c6a805
commit
7088b509cf
1 changed files with 1 additions and 1 deletions
2
src/jquery/jquery.js
vendored
2
src/jquery/jquery.js
vendored
|
@ -24,7 +24,7 @@ window.undefined = window.undefined;
|
||||||
*/
|
*/
|
||||||
var jQuery = function(a,c) {
|
var jQuery = function(a,c) {
|
||||||
// If the context is global, return a new object
|
// If the context is global, return a new object
|
||||||
if ( window == this )
|
if ( window == this || !this.init )
|
||||||
return new jQuery(a,c);
|
return new jQuery(a,c);
|
||||||
|
|
||||||
return this.init(a,c);
|
return this.init(a,c);
|
||||||
|
|
Loading…
Reference in a new issue