avoid creating a new data cache if we don't need one. Also, short-circuit the case...
[jquery.git] / 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;