detached dom tree left after .destructor()

Hello,

when destroying a calendar, a dom tree is still in the memory heap as detached :
HTMLDivElement : .webix_view.webix_calendar.

It look like there is still an anonymous function binded to the div: webix_debug:241.

How can I remove that detached tree from the memory ?

code snippet : http://webix.com/snippet/84051e20

	var calendar = webix.ui({
		view:"calendar", 
		container:"calendar", 
		id:"calendar"
	});
	
	var bouton = webix.ui({
		label:"destroy",
		view:"button", 
		container:"destroy", 
		id:"destroy",
		click: function() {
			calendar.destructor();
		}
	});

Hi, I can confirm the issue.

“click” event handler locks the node, so it is not fully removed till the page unloading. We will fix it in the next update.

The issue must not cause a serious memory leak, as only the top element stays in the memory, inner HTML is correctly removed.

Cool.
Waiting for the update then.

Thank you