Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
destroy() {
super.destroy();
this.unlisten(MDCTabFoundation.strings.INTERACTED_EVENT, this.handleTabInteraction_);
this.unlisten('keydown', this.handleKeyDown_);
this.tabList_.forEach((tab) => tab.destroy());
if (this.tabScroller_) {
this.tabScroller_.destroy();
}
}