X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fcore.js;h=34bab952d0c8c4ba4ef7412a38251b9e35a5dc19;hb=f95147f465932cb91e1a6aace50c556820ca4074;hp=2271ceb53702158b5f863e357785653b372d2955;hpb=b8076a914ba9d400dc9c48d866b145df6fabafcf;p=jquery.git diff --git a/src/core.js b/src/core.js index 2271ceb..34bab95 100644 --- 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;