protected function registerAssets()
    {
        // If we have to hide the deleted comments, we will define the javascript
        // to destroy the comment instead of the default functionality.
        if ($this->showDeletedComments === FALSE)
        {
            $this->clientOptions['deleteComment'] = TRUE;
        }

        $view = $this->getView();
        $options = Json::encode($this->clientOptions);
        CommentAsset::register($view);
        $view->registerJs('jQuery.comment(' . $options . ');');
    }