dojo.Deferred.addBoth
<script src="../../js/dojo.js"></script>
defined in dojo/_base/Deferred.js
Add the same function as both a callback and an errback as the next element on the callback sequence.This is useful for code that you want to guarantee to run, e.g. a finalizer.
parameter | type | description |
---|---|---|
cb | Function|Object | |
cbfn | String | Optional. |