diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2006-11-09 21:16:03 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2006-11-09 21:16:03 +0000 |
commit | 03b0a9c654727e4bb551865793548c907687a4ae (patch) | |
tree | 5a36369cad1545d72f17e2c9a0233e6700751e07 /src/ajax | |
parent | c0e0119c3d8a745ddaed0428353d892c30ccc1a5 (diff) | |
download | jquery-03b0a9c654727e4bb551865793548c907687a4ae.tar.gz jquery-03b0a9c654727e4bb551865793548c907687a4ae.zip |
Modified test for load(); added fix for trigger, where it modifies data passed to it, which causes ugly side-effects
Diffstat (limited to 'src/ajax')
-rw-r--r-- | src/ajax/ajax.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ajax/ajax.js b/src/ajax/ajax.js index 2ed539607..ecc0c6435 100644 --- a/src/ajax/ajax.js +++ b/src/ajax/ajax.js @@ -51,6 +51,8 @@ jQuery.fn.extend({ * window.foo = undefined; * var verifyEvaluation = function() { * ok( foobar == "bar", 'Check if script src was evaluated after load' ); + * ok( $('#foo').html() == 'foo', 'Check if script evaluation has modified DOM'); + * ok( $('#ap').html() == 'bar', 'Check if script evaluation has modified DOM'); * start(); * }; * $('#first').load('data/test.html', function() { @@ -62,7 +64,7 @@ jQuery.fn.extend({ * @name load * @type jQuery * @param String url The URL of the HTML file to load. - * @param Hash params A set of key/value pairs that will be sent to the server. + * @param Object params A set of key/value pairs that will be sent to the server. * @param Function callback A function to be executed whenever the data is loaded. * @cat AJAX */ |