Description
The deferred.then() method adds handlers to be called when the Deferred object is resolved or rejected.
v1.5
This method has the form:
deferred.then(doneCallbacks,failCallbacks)
Parameter | Description |
---|---|
doneCallbacks | Specifies a function, or array of functions, that are called when the Deferred object is resolved |
failCallbacks | Specifies a function, or array of functions, that are called when the Deferred object is rejected |
Return Value
This form returns a Deferred object.
v1.7
This method has the alternate form:
deferred.then(doneCallbacks,failCallbacks [, progressCallbacks])
Parameter | Description |
---|---|
doneCallbacks | Specifies a function, or array of functions, that are called when the Deferred object is resolved |
failCallbacks | Specifies a function, or array of functions, that are called when the Deferred object is rejected |
progressCallbacks | Specifies a function, or array of functions, that are called when the Deferred object notifies progress |
Return Value
This form returns a Deferred object.