Commit 66c58e9d authored by Ariel Flesler's avatar Ariel Flesler

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

parent 9e1a955a
......@@ -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;
......
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