is there any way, or an accepted way, to store info associated with a
deferred to be used in the callback?

to better explain this:

function subscribe( id )
{
   var d= loadJSONDoc( 'subscribe/'+id );
        d.addCallback( this._subscribe_ok );
        d.addErrback( this._subscribe_fail );
}

a page has multiple chances to hit subscribe.  i'd like to figure out a
way to associate the id with the callback/errback.  i can echo it in a
working query, but i can't do that in an Errback.  i could store an
'active' or array of ids, but there's no guarantee on return order.

i'm sure someone figured out how to address this issue already - i just
can't find it in the docs or group.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to