jquery core: removing the body optimization, as it is then handled by $("TAG").

This commit is contained in:
Ariel Flesler 2009-09-14 17:33:15 +00:00
parent 9e1a955aab
commit 66c58e9db6

View file

@ -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;