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.
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss