i have a sample where i create a new dhtmlxwindow and add some components to it like a tabbar, a grid, a form. After closing the window, there are dom nodes from the child elements left. i know i can clean them up manually by using toolbar.unload(), tabbar.clearAll() and so on.
i want to know if there is a more generic, automatic way of cleaning all the stuff up when their parent disappears instead of doing it manually on a onClose method or something.
here is a sample:
[code]
open dialog [/code]change the include paths and look at the DOM before opening and after closing the window, it looks like this (good)
repeat with the tabbar.clearAll() commented out, there will be dom elements left forever. If you are opening and closeing the window multiple times, you get more and more useless elements. (bad)
Thank you.