function onIsRemoved(\ManiaLive\Gui\Container $target) { parent::onIsRemoved($target); $this->destroy(); }