Commit cb65daa3 authored by jeresig's avatar jeresig

The context for 'body' should still be document, in this case.

parent 4f2e209b
...@@ -72,7 +72,8 @@ jQuery.fn = jQuery.prototype = { ...@@ -72,7 +72,8 @@ jQuery.fn = jQuery.prototype = {
// The body element only exists once, optimize finding it // The body element only exists once, optimize finding it
if ( selector === "body" && !context ) { if ( selector === "body" && !context ) {
this.context = this[0] = document.body; this.context = document;
this[0] = document.body;
this.selector = "body"; this.selector = "body";
this.length = 1; this.length = 1;
return this; return this;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment