Functiondojo.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.

Usage

function (/*Function|Object*/ cb, /*String?*/ cbfn) (view source)
parametertypedescription
cbFunction|Object 
cbfnStringOptional.