X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fajax%2Fajax.js;h=896f92d2f48e0189741b8e0e97fdf33bc832af96;hb=c901863b31e4550d44f4512106c102cb4fac285e;hp=5aeb9439a551b704617e82bd7f754b23c586958a;hpb=7b2c84ddbe004ed4ab2ee3982af40b7275d7dfde;p=jquery.git diff --git a/src/ajax/ajax.js b/src/ajax/ajax.js index 5aeb943..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(); - * }, 100); + * }); * * @name load * @type jQuery