IE Memory leak: Elements removed from dom are not having their observers stopped
The fix recently applied:
Only solves part of the problem.
Elements that are removed from the document are not having their observers stopped.
We know things worked in 1.5.
We should probably implement a similar system.
Holding onto an element reference and removing its observers onunload.
http://dev.rubyonrails.org/attac... (patch may not be perfect but you get the idea)
Also we can "clean as we go" by having Element#update remove observers on the elements children (that are getting erased).
We can also add a second param to Element#remove and Element#replace that allows "house cleaning" as well.
This helps the memory usage on pages that don’t get refreshed often.