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:
4f2e209
)
The context for 'body' should still be document, in this case.
author
jeresig
<jeresig@gmail.com>
Fri, 29 Jan 2010 20:04:26 +0000
(15:04 -0500)
committer
jeresig
<jeresig@gmail.com>
Fri, 29 Jan 2010 20:04:26 +0000
(15:04 -0500)
src/core.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
2271ceb
..
34bab95
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-72,7
+72,8
@@
jQuery.fn = jQuery.prototype = {
// The body element only exists once, optimize finding it
if ( selector === "body" && !context ) {
- this.context = this[0] = document.body;
+ this.context = document;
+ this[0] = document.body;
this.selector = "body";
this.length = 1;
return this;