PDA

View Full Version : enableListenerCollection in collectGarbage



Gavin
8 Jul 2007, 11:42 PM
Hi,

I like the new garbage collection functionality in 1.1 but I think there is a bug (unless I am missing something). In the garbageCollect method there is the following code:



if(d && Ext.enableListenerCollection){
Ext.lib.Dom.purgeElement(d);
}


but in my version purgeElement does not exist within the Ext.lib.Dom namespace. I modified it be like this:



if(d && Ext.enableListenerCollection){
E.purgeElement(d);
}


and all seems well.

Cheers

Gavin

jack.slocum
9 Jul 2007, 1:45 AM
Thanks Gavin, that is indeed what it should be.