]> source.dussan.org Git - jquery.git/commitdiff
The context for 'body' should still be document, in this case.
authorjeresig <jeresig@gmail.com>
Fri, 29 Jan 2010 20:04:26 +0000 (15:04 -0500)
committerjeresig <jeresig@gmail.com>
Fri, 29 Jan 2010 20:04:26 +0000 (15:04 -0500)
src/core.js

index 2271ceb53702158b5f863e357785653b372d2955..34bab952d0c8c4ba4ef7412a38251b9e35a5dc19 100644 (file)
@@ -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;