X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fajax%2Fajax.js;h=896f92d2f48e0189741b8e0e97fdf33bc832af96;hb=967eec18317d0451af93b1a86902e80d39086507;hp=dd62b42384ae4ca0a92c68ac48b24ff4c7e8bcbb;hpb=fac6a87dcf2cb731692ea5baa647293435cdde01;p=jquery.git 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