git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Calling jQuery() with apply would break things (namely in the SlickSpeed test suite).
[jquery.git]
/
src
/
jquery
/
jquery.js
diff --git
a/src/jquery/jquery.js
b/src/jquery/jquery.js
index
fe8b32b
..
e5e494a
100644
(file)
--- a/
src/jquery/jquery.js
+++ b/
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
*/
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);
return new jQuery(a,c);
return this.init(a,c);