jquery core: removing the body optimization, as it is then handled by $("TAG").
authorAriel Flesler <aflesler@gmail.com>
Mon, 14 Sep 2009 17:33:15 +0000 (17:33 +0000)
committerAriel Flesler <aflesler@gmail.com>
Mon, 14 Sep 2009 17:33:15 +0000 (17:33 +0000)
src/core.js

index aeae874..3b11ed8 100644 (file)
@@ -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;