diff options
author | portix <none@none> | 2012-12-20 12:45:56 +0100 |
---|---|---|
committer | portix <none@none> | 2012-12-20 12:45:56 +0100 |
commit | 26b475119e14a0cd3e0a202a7460f7c4d3bdd4e9 (patch) | |
tree | db19646b32c9f60da9d6775ca82fe1aac27dc7ce /api | |
parent | bb996253cec57495723701ed32facbe29e7ad0f3 (diff) | |
download | dwb-26b475119e14a0cd3e0a202a7460f7c4d3bdd4e9.zip |
Renaming _js_array_iterator -> js_array_iterator
Diffstat (limited to 'api')
-rw-r--r-- | api/jsapi.txt | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/api/jsapi.txt b/api/jsapi.txt index f6122dde..ac8a530d 100644 --- a/api/jsapi.txt +++ b/api/jsapi.txt @@ -1156,10 +1156,25 @@ _returns_;; A new deferred that can be used to chain callbacks. ==== *Examples* ==== -Simple usage of a deferred: +The builtin function system.spawn returns a deferred: [source,javascript] --------------------------------- +system.spawn("command").then( + function() + { + /* called when execution was successful */ + }, + function(errorcode) + { + /* called when execution wasn't successful */ + } +); +--------------------------------- + +Simple usage of a deferred: +[source,javascript] +--------------------------------- function loadUri(uri) { var d = new Deferred(); tabs.current.loadUri(uri, function(wv) { |