[Prototype-core] Re: Event.stopObserving, does it do proper cleanup?

2007-01-28 Thread Colin Mollenhour
I don't know if it is javascript, firebug, firefox or what, but after running firefox for a while it's memory usage will creep up to over 250mb ("Mem Usage" and "VM Size" in the task manager). I have to wonder if my Ajax heavy pages contribute to this so I'm not so convinced that garbage coll

[Prototype-core] Re: Event.stopObserving, does it do proper cleanup?

2007-01-27 Thread Mislav Marohnić
On 1/27/07, Mislav Marohnić <[EMAIL PROTECTED]> wrote: > > > *Could* be preventing GC, ... Errr I meant "could be preventing proper GC before unload", because on unload everything seems properly GC-ed anyway. -m --~--~-~--~~~---~--~~ You received this message bec

[Prototype-core] Re: Event.stopObserving, does it do proper cleanup?

2007-01-27 Thread Mislav Marohnić
On 1/26/07, Colin Mollenhour <[EMAIL PROTECTED]> wrote: > > > I noticed that Event.stopObserving does not actually remove the array > of [element,name,observer] from the observers cache that it adds when > you call Event.observe. Could this be preventing proper garbage > collection? *Could* be pr

[Prototype-core] Re: Event.stopObserving, does it do proper cleanup?

2007-01-26 Thread Colin Mollenhour
Regardless of whether or not it causes a circular reference in IE, it does still keep some data in the cache which is a waste (considering things like tooltips are creating and destroying possibly many events in one second). So, I included this fix in my patch http://dev.rubyonrails.org/ticket/740