[mochikit] Re: Deferred chains?

2006-03-21 Thread Bob Ippolito
On Mar 21, 2006, at 2:45 PM, Doug Crawford wrote:Does anyone have an example of how to setup or use Deferred Chainswhere a callback returns another Deferred instance.  I am havingtrouble understanding what is supposed to happen with any return valuefrom a Deferred callback function.  Is this

[mochikit] Re: Deferred chains?

2006-03-21 Thread Bob Ippolito
On Mar 21, 2006, at 4:36 PM, Doug Crawford wrote:Thanks,  I am starting to understand this stuff but not completely.  Inyour example you never explicitly call e.addCallback() so when you calle.callback("write this") how does the e object choose the rightcallback function?When a Deferred ends up in

[mochikit] Re: Deferred chains?

2006-03-21 Thread Bob Ippolito
On Mar 21, 2006, at 5:24 PM, Bob Ippolito wrote: On Mar 21, 2006, at 4:36 PM, Doug Crawford wrote: I thought I could restructure the example slightly and still get the same end result but the following example does not print write this. I am sure it is obvious why this similar example