On May 26, 2006, at 6:31 PM, jvanasco wrote:

>
> Thanks all.
>
> Can I suggest adding something like this do the docs around  
> deferred or
> loadJSONdoc ?
>
> """
> var d= loadJSONDoc(url);
>    d.addCallback( this.function_success [, a , b , z ]);
>    d.addErrback( this. function_error [, a , b , z ]);
>
> function function_success( [a , b , z ,] serverJSONResponseObject ){}
> function function_error( [a , b , z ,] mochikitErrorObject ){}
> """
>
> the prepend/postpend threw me off, and the fact that MK can push add'l
> vars into a callback wasn't really documented.

It's been documented ever since that syntax was supported.

"""
If additional arguments are given, then func will be replaced with  
MochiKit.Base.partial.apply(null, arguments). This differs from  
Twisted, because the result of the callback will be the last argument  
passed to func.
"""

-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