jquery core: removing the body optimization, as it is then handled by $("TAG").
This commit is contained in:
parent
9e1a955aab
commit
66c58e9db6
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue