diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2012-04-18 13:04:04 -0400 |
---|---|---|
committer | Rick Waldron waldron.rick@gmail.com <waldron.rick@gmail.com> | 2012-04-18 13:04:44 -0400 |
commit | 9ebc27db54194c88fa7aed29a8c648c330300ac8 (patch) | |
tree | 87d0ac972dbea949db43b89f9e9e180bececc0a1 /src | |
parent | abd2a07498afa48a4ec3ce0471b9b0b4fc812b55 (diff) | |
download | jquery-9ebc27db54194c88fa7aed29a8c648c330300ac8.tar.gz jquery-9ebc27db54194c88fa7aed29a8c648c330300ac8.zip |
Remove $("body") case; $(document.body) is 2x faster.
Diffstat (limited to 'src')
-rw-r--r-- | src/core.js | 9 | ||||
m--------- | src/sizzle | 0 |
2 files changed, 0 insertions, 9 deletions
diff --git a/src/core.js b/src/core.js index 4e38deaeb..f317666ce 100644 --- a/src/core.js +++ b/src/core.js @@ -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? diff --git a/src/sizzle b/src/sizzle -Subproject 912a8218c36f6136d694a0915eb92bdf3e7b5e4 +Subproject feebbd7e053bff426444c7b348c776c99c7490e |