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; return this;
} }
// $("body"): Shortcut for quickly finding the body element
if ( selector === "body" && !context && document.body ) {
selector = document.body;
}
// Handle $(DOMElement) // Handle $(DOMElement)
if ( selector.nodeType ) { if ( selector.nodeType ) {
this.context = this[0] = selector; this.context = this[0] = selector;