git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28c9c6a
)
Calling jQuery() with apply would break things (namely in the SlickSpeed test suite).
author
John Resig
<jeresig@gmail.com>
Fri, 29 Jun 2007 20:52:59 +0000
(20:52 +0000)
committer
John Resig
<jeresig@gmail.com>
Fri, 29 Jun 2007 20:52:59 +0000
(20:52 +0000)
src/jquery/jquery.js
patch
|
blob
|
history
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
- if ( window == this )
+ if ( window == this || !this.init )
return new jQuery(a,c);
return this.init(a,c);