Home > widget-integration > CartDrawerRecommendationController > destroy
CartDrawerRecommendationController.destroy() method
Full cleanup of all event listeners and resources. Removes click/change handlers, cart drawer open/close listeners, and destroys the native carousel.
Call this when the module is being destroyed and the controller should no longer respond to any events.
Signature:
destroy(): void;
Returns:
void