]> source.dussan.org Git - jquery.git/commitdiff
jquery core: Closes #3666. Removed old code.
authorAriel Flesler <aflesler@gmail.com>
Thu, 25 Dec 2008 17:37:58 +0000 (17:37 +0000)
committerAriel Flesler <aflesler@gmail.com>
Thu, 25 Dec 2008 17:37:58 +0000 (17:37 +0000)
src/core.js

index ff8114bb5ff1687385f74225b71ed22cb10996f1..a38e91ac81443e1d51a6bb81fe5f3fbf9d7b2c62 100644 (file)
@@ -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));
        },