Well as far as I know it so not a workaround at all, but a feature implemented in most frameworks to allow the specification of context in a callback. I use mostly prototype and it proposes the same feature: http://api.prototypejs.org/language/function.html#bind-instance_method
I use it a lot and it has never failed me. On Mar 12, 12:10 pm, nouknouk <[email protected]> wrote: > hi, > > I finally worked around by using the 'bind' feature of Mootools: > For example, in the code above, I replace the line: > > > Ape.addEvent('adduser', this.onApeAddUser); > > By: > > Ape.addEvent('adduser', this.onApeAddUser.create({bind: this})); > > But for me, this looks more like a workaround than anything else. > Don't you think ? > > Regards, > > Nouk² -- You received this message because you are subscribed to the Google Groups "APE Project" 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/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/
