On 2/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> In my initialize function I'm setting up a number of member variables,
> but they don't seem to exist when called by the PeriodicalExecuter
> (this.options, this.frontimage, etc).  Can someone explain?
>
> Here's the code:
>
[...]
>                 this.pe = new PeriodicalExecuter(this.shownext,
> this.options.slidetime);
>
[...]

You have to use this statement instead :
this.pe = new PeriodicalExecuter(this.shownext.bind(this),
this.options.slidetime);

See http://prototypejs.org/api/function/bind for details.

Yours,
Nicolas Terray

--~--~---------~--~----~------------~-------~--~----~
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