Skip to content

onDestruct

occurs when a component is destroyed

function onDestruct(): void
mygrid.attachEvent("onDestruct", function(){
this.some = null;
console.log("This is the end.");
});

Can be used to free memory or delete the related objects