From: Ariel Flesler Date: Thu, 25 Dec 2008 17:37:58 +0000 (+0000) Subject: jquery core: Closes #3666. Removed old code. X-Git-Tag: 1.3b2~59 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5459180728260b09a5d1d8b8ea17201dda131d47;p=jquery.git jquery core: Closes #3666. Removed old code. --- diff --git a/src/core.js b/src/core.js index ff8114bb5..a38e91ac8 100644 --- a/src/core.js +++ b/src/core.js @@ -81,7 +81,7 @@ jQuery.fn = jQuery.prototype = { // HANDLE: $(function) // Shortcut for document ready } else if ( jQuery.isFunction( selector ) ) - return jQuery( document )[ jQuery.fn.ready ? "ready" : "load" ]( selector ); + return jQuery( document ).ready( selector ); return this.setArray(jQuery.makeArray(selector)); },