protected function initAutoHide()
    {
        if ($this->getIsDelayed() === false) {
            return null;
        }

        /** @var \yii\web\View $view */
        $view = $this->getView();

        $view->registerJs($this->makeJs(), View::POS_READY);

        AlertAssets::register($view);
    }