]> source.dussan.org Git - jquery.git/commitdiff
Fixed second test for load()
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 9 Oct 2006 07:24:46 +0000 (07:24 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 9 Oct 2006 07:24:46 +0000 (07:24 +0000)
src/ajax/ajax.js

index dd62b42384ae4ca0a92c68ac48b24ff4c7e8bcbb..896f92d2f48e0189741b8e0e97fdf33bc832af96 100644 (file)
@@ -41,10 +41,10 @@ jQuery.fn.extend({
         *
         * @test stop(); // check if load can be called with only url
         * $('#first').load("data/name.php");
-        * setTimeout(function() {
+        * $.get("data/name.php", function() {
         *   ok( $('#first').text() == 'ERROR', 'Check if load works without callback');
         *   start();
-        * }, 500);
+        * });
         *
         * @name load
         * @type jQuery