protected function initDestroyJs()
    {
        if (isset($this->pluginDestroyJs)) {
            return;
        }

        if (empty($this->pluginName)) {
            $this->pluginDestroyJs = '';
            return;
        }

        $id = "jQuery('#" . $this->options['id'] . "')";
        $plugin = $this->pluginName;
        $this->pluginDestroyJs = "if ({$id}.data('{$this->pluginName}')) { {$id}.{$plugin}('destroy'); }";
    }