||View All MessagesBack to WebFX|
I was able to break all the closures.
I'm still experiencing a significant memory leak though.
From: Erik Arvidsson
Sent: October 27, 2002
Subject: Re:Memory Leaks in Menu4
It is of course impossible to remove the closures. Closures are what makes JS such a good language. Without closures all objects would need to be global.
However, I'll see if I can break a few of these circular references. I have tried this before and I did not see any improvements. The following features are required.
attachEvent, setTimeout: Both require function expressions to encapsulate local objects.
I have tried detachEvent but that did not help at all.