diff options
Diffstat (limited to 'api/jsapi.txt')
-rw-r--r-- | api/jsapi.txt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/api/jsapi.txt b/api/jsapi.txt index b04c583a..cb411b95 100644 --- a/api/jsapi.txt +++ b/api/jsapi.txt @@ -1205,8 +1205,7 @@ foo().fail(onResponse).fail(onResponse); --------------------------------- Note that if the deferred is rejected only the fail chain is called, when it is -resolved only the done chain is called. It is not possible to mix up done -and fail chain. +resolved only the done chain is called. [source,javascript] --------------------------------- function foo() @@ -1225,9 +1224,9 @@ function onResponse(response) io.print(response); } -// Will not be executed at all. +// Only the fail will be executed + foo().done(onResponse).fail(onResponse); -// Only the first callback is executed foo().fail(onResponse).done(onResponse); --------------------------------- |