onDestruct
occurs when a component is destroyed
function onDestruct(): voidExample
Section titled “Example”mygrid.attachEvent("onDestruct", function(){ this.some = null; console.log("This is the end.");});Details
Section titled “Details”Can be used to free memory or delete the related objects