You want Function#bind http://prototypejs.org/api/function/bind
afterFinish: this.myFunction.bind(this)

Best,
-Nicolas

On Nov 16, 2007 11:19 AM, Dennis Schmidt <[EMAIL PROTECTED]> wrote:

>
> Hello,
>
> I've got a class which in one method moves some HTML elements around.
> Those elements are accessed through member variables of my class.
>
> Now I want another function of the class to be called after the effect
> has completed. Up to there everything is quite fine. But the problem
> now is, that the "afterFinish: this.myFunction" does call the
> function, but inside of myFunction() i can't access my class variables
> anymore. So this.Anything doesn't work.
>
> Anyone knows how i can achieve what I want?
>
> Thanks in advance, Dennis
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to