Skip to content
Permalink
Browse files

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

  • Loading branch information
jeresig committed Jan 29, 2010
1 parent 4f2e209 commit cb65daa399630de0cdcd81af55ff76f6cd93da62
Showing with 2 additions and 1 deletion.
  1. +2 −1 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;

0 comments on commit cb65daa

Please sign in to comment.
You can’t perform that action at this time.