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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Nicolas Sanguinetti
2007-Nov-13 14:14 UTC
Re: PeriodicalExecuter : what happen to it after you stop it
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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Julio Carlos
2007-Nov-13 20:34 UTC
Re: PeriodicalExecuter : what happen to it after you stop it
Time ago I send a patch to the trac of prototype that does that. It was accepted but I don''t see it in the actual 1.6 version. Anyway, check it out and if you want added the function I made to your working copy of prototype. The ticket in the trac is this http://dev.rubyonrails.org/ticket/9370 Hope this work for you. Bye On Nov 13, 5:59 am, pvk <pasc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-- Julio Carlos Menéndez GNU/Linux User #403551 http://deltha.uh.cu/~juliocarlos --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---