jQuery UI 1.7 Dialog plugin - memory leakage?

jQuery UI 1.7 Dialog plugin - memory leakage?


Hi there,
It seems like each invocation of $(someSelector).dialog({ ... }) is
allocating a new object, and not re-using or reclaiming that memory at
any later point. Is there a method that needs to be explicitly called
to do the cleanup, or is there something else in the framework that
can do said cleanup?
Right now in the demo page that came with the download bundle, I'm
noticing IE6 consumes about ~2-8MB / each invocation of the modal
dialog, and about ~500K-1MB / each invocation of the basic dialog. IE7
seems to be doing a better job of consuming less- about ~4MB /
invocation for the modal dialog, and ~200KB-700KB / invocation for the
basic dialog. (Yes, I know you can explicitly reclaim memory in IE by
minimizing, but this seems like a solvable problem).
I think I saw mention of a cache object in a discussion thread I can't
seem to find right now.. is there a way to use this to store/re-use
references to the dialog objects?
--Mike
ps. Chrome and Firefox (3.0.7) seem less affected by this problem, as
they both exhibit active garbage collection (V8 currently a lot more
aggressive than Spidermonkey) at intermittent points.