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 dd62b42..896f92d 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