mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Calling jQuery() with apply would break things (namely in the SlickSpeed test suite).
This commit is contained in:
parent
28c9c6a805
commit
7088b509cf
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 New Issue
Block a user