Auto Unloading of child Components

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.

Unfortunately there is no direct destructor. We will try to fix it for the next update.

I am attempting to use a DHTMLX for a single page application where windows are constantly opened and closed throughout the day (main page never reloads). So I need something like this as well. Any updates on this?

Hello, gfrobenius
If you have active custom support, please, open ticket with this question in a ticket system