summaryrefslogtreecommitdiff
path: root/api/jsapi.txt
diff options
context:
space:
mode:
Diffstat (limited to 'api/jsapi.txt')
-rw-r--r--api/jsapi.txt21
1 files changed, 20 insertions, 1 deletions
diff --git a/api/jsapi.txt b/api/jsapi.txt
index 0de6b314..9ad2fe30 100644
--- a/api/jsapi.txt
+++ b/api/jsapi.txt
@@ -652,7 +652,7 @@ Executes a shell command using the default search path
::
_command_;; The command to execute
-_stdin(String)_;; Callback function for stdin, pass +null+ if only stderr is
+_stdout(String)_;; Callback function for stdin, pass +null+ if only stderr is
needed, optional
_stderr(String)_;; Callback function for stderr, optional
_returns_;; A deferred, it will be resolved if the child exits
@@ -1082,6 +1082,25 @@ Deferreds implement the following methods:
[source,javascript]
----
+Deferred Deferred.always(Function callback)
+----
+
+Registers a function for then done and fail chain.
+
+ ::
+
+_callback_;; A callback function that will be called when the Deferred is
+resolved or rejected. If the function returns a deferred the original deferred will be replaced with
+the new deferred.
+_returns_;; A new deferred that can be used to chain callbacks.
+****
+
+****
+[float]
+==== *done()* ====
+
+[source,javascript]
+----
Deferred Deferred.done(Function callback)
----