From: Jörn Zaefferer Date: Mon, 9 Oct 2006 07:24:46 +0000 (+0000) Subject: Fixed second test for load() X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=6cb2e8ee8b801381fba9fcb14078f87de2517926;p=jquery.git Fixed second test for load() --- diff --git a/src/ajax/ajax.js b/src/ajax/ajax.js index dd62b42..896f92d 100644 --- a/src/ajax/ajax.js +++ b/src/ajax/ajax.js @@ -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