if I have a dojo.Deferred and add several callbacks to it (let us look at an successfully task) and in addition, I add a then (function(){..}); to the Deferred,
which callback is called at first?
if I have a dojo.Deferred and add several callbacks to it (let us look
Share
I have put together a short example to manifest the FIFO principle: http://jsfiddle.net/phusick/CHQ8d/
The latest documentation: http://livedocs.dojotoolkit.org/dojo/Deferred
It is useful to know that when chaining callbacks the return value of the callback is passed to the following callback (see the jsFiddle for details).