Re: Dialog Cleanup
- What version of the yahoo ui are you using? The latest version fixes
a memory leak I discovered (http://tech.groups.yahoo.com/group/ydn-
If you are using an older version you will need to apply the leak or
you will never clean up the dialogs you create. In my application a
subscribe to my dialogs hide event. When the dialog is hidden I call
destroy on the dialog and then set the dialog to null. This cleans
up the forms as seen in firebug.
> What is the easiest way to clean up the DOM (document.forms) of
> dialog created dynamically?
> Using Firebug, I can see multiple instances of the dialog that I
> create dynamically when a button is pressed.
> I added a cleanup section where I delete the dialog itself but I
> haven't found the easiest way to cleanup the document.forms array.