On 12/20/07, Ian Lewis <[EMAIL PROTECTED]> wrote: > Is it intentional that the callLater() function causes the 'this' reference > to get scrapped?
Has nothing to do with MochiKit, JavaScript doesn't have bound methods like Python does. The binding of "this" is done by the method call syntax. It would be impossible to preserve it unless the function was wrapped. See MochiKit.Base.{bind,method,bindMethods} for the typical workarounds, also: http://bob.pythonmac.org/archives/2005/07/06/this-sucks-in-javascript/ -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 -~----------~----~----~----~------~----~------~--~---