On 5/26/06, Julio Oña <[EMAIL PROTECTED]> wrote:
> sorry, fast replay.

I do that too :o( -- Most other mailing-lists I'm on have reply-to
header munging so pressing "reply" replies to the list - I know it's a
controversial topic, but how do the list-owners feel about changing
the setting?

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

Your guess is correct, furthermore

  d.addCallback(func, arg1, ..., argN)

is a shortcut for

  d.addCallback(partial(func, arg1, ..., argN))

and same for addErrback.

Arnar

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