From 66c58e9db6469a0ae3ab7a878b00c66c6a904806 Mon Sep 17 00:00:00 2001 From: Ariel Flesler Date: Mon, 14 Sep 2009 17:33:15 +0000 Subject: [PATCH] jquery core: removing the body optimization, as it is then handled by $("TAG"). --- src/core.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/core.js b/src/core.js index aeae874..3b11ed8 100644 --- a/src/core.js +++ b/src/core.js @@ -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; -- 1.7.10.4