called after gantt has been cleared by the destructor method
gantt.attachEvent("onDestroy", function(){ alert("free custom resources"); }); gantt.destructor();