On 8/22/07, Giulio Cesare Solaroli <[EMAIL PROTECTED]> wrote: > > Hello, > > using the excellent MochiKit.Async module, I find myself writing the > following code over and over: > > dererred.addCallback(MochiKit.Base.method(anObject, 'aMethod'), aParam, ...); > > It look like it would be nice to add a 'addCallbackMethod' to the > Deferred class in order to be able to write the above statement like > this: > > deferred.addCallbackMethod(anObject, 'aMethod', aParam, ....); >
Well if you're importing MochiKit then you can just say method(anObject, 'aMethod') instead of MochiKit.Base.method, and then it's almost just as short as addCallbackMethod. I don't really see a reason to add more API. -bob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---