Skip to content
Permalink
Browse files

jquery core: removing the body optimization, as it is then handled by…

… $("TAG").
  • Loading branch information
flesler committed Sep 14, 2009
1 parent 9e1a955 commit 66c58e9db6469a0ae3ab7a878b00c66c6a904806
Showing with 0 additions and 5 deletions.
  1. +0 −5 src/core.js
@@ -52,11 +52,6 @@ jQuery.fn = jQuery.prototype = {
return this;
}

// $("body"): Shortcut for quickly finding the body element
if ( selector === "body" && !context && document.body ) {
selector = document.body;
}

// Handle $(DOMElement)
if ( selector.nodeType ) {
this.context = this[0] = selector;

0 comments on commit 66c58e9

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