The PeriodicalExecuter in 1.6 has an stop method.
You can call the registerCallback method to resume it once stopped,  
or, if you want to be more explicit

PeriodicalExecuter.prototype.resume =  
PeriodicalExecuter.prototype.registerCallback;

Best,
-Nicolas

On Nov 13, 2007, at 8:59 AM, pvk wrote:

>
> I am in need of a PeriodicalExecuter that I would start and stop
> regularly and quite a lot. The doc tells me that I should create a new
> one each time, but it doesn't looks like good memory management
> practice to me.
> Is there a better way ?
> Is there some change in version 1.6 ?
> Doc : http://www.prototypejs.org/api/periodicalExecuter/stop
>
>
> >


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