Commit 9ebc27db authored by Dave Methvin's avatar Dave Methvin Committed by Rick Waldron waldron.rick@gmail.com

Remove $("body") case; $(document.body) is 2x faster.

parent abd2a074
......@@ -90,15 +90,6 @@ jQuery.fn = jQuery.prototype = {
return this;
}
// The body element only exists once, optimize finding it
if ( selector === "body" && !context && document.body ) {
this.context = document;
this[0] = document.body;
this.selector = selector;
this.length = 1;
return this;
}
// Handle HTML strings
if ( typeof selector === "string" ) {
// Are we dealing with HTML string or an ID?
......
Subproject commit 912a8218c36f6136d694a0915eb92bdf3e7b5e41
Subproject commit feebbd7e053bff426444c7b348c776c99c7490ee
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