Is there a simple way to abort the callback chain from one of the
callbacks?
It continues calling the success chain because the errback doesn't
return an error or raise an exception.
Thanks - I tried throwing an exception from the errback as you suggest
and it does what I want (stops
On Jan 23, 2008 9:07 PM, SimonS [EMAIL PROTECTED] wrote:
Hi,
I'm curious about the effect of the following code:
var d = new Deferred();
d.addCallback(function() { alert('f'); throw new
GenericError('foo'); });
d.addErrback(function() { alert('e'); });
d.addCallback(function()