then
can.Deferred.prototype.then
Add callbacks to a Deferred.
deferred.then(doneCallback[, failCallback])
Parameters
-
doneCallback
{function()}
A function called when the Deferred is resolved.
-
failCallback
{function()}
OptionalA function called when the Deferred is rejected.
deferred.then(doneCallback, failCallback)
adds handler(s) to be called when the Deferred object to be called after its resolved.