WeakMap not the weak needed for zombie views

Russell Leggett russell.leggett at gmail.com
Sun Jul 6 10:46:56 PDT 2014


Sorry to take this on a tangent from the topic of WeakRefs, but the way
I've solved the OP's problem in my own code is by tying anything that needs
cleanup to element ids. Any time I need to update the HTML, I go through a
central method that crawl that part of the dom and purges it using the ids
as keys in maps of bindings/widgets. Has worked very well for me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140706/24b8f5bf/attachment.html>


More information about the es-discuss mailing list