On May 26, 2006, at 4:16 AM, Julio Oña wrote:

sorry, fast replay.

---------- Forwarded message ----------
From: Julio Oña <[EMAIL PROTECTED]>
Date: May 26, 2006 12:15 AM
Subject: Re: [mochikit] storing info associated with a deferred
To: jvanasco <[EMAIL PROTECTED]>

Just guessing,


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

Using parital is unnecessary, just pass multiple arguments to addCallback or addErrback. It does the same thing.

-bob


--~--~---------~--~----~------------~-------~--~----~
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