С версии: 1.0
Автор: Buba Suma (bubasuma@gmail.com)
Наследование: extends yii\web\AssetBundle
 public function registerJs()
 {
     $id = $this->options['id'];
     $options = Json::htmlEncode($this->clientOptions);
     $user = Json::htmlEncode($this->user);
     $current = Json::htmlEncode($this->current);
     $view = $this->getView();
     ConversationAsset::register($view);
     $view->registerJs("jQuery('#{$id}').yiiSimpleChatConversations({$user}, {$current}, {$options});");
 }
 public function registerJs()
 {
     $id = $this->options['id'];
     if (!isset($this->clientOptions['selector'])) {
         $this->clientOptions['selector'] = '.' . strstr($this->itemOptions['class'], ' ', true);
     }
     $options = Json::htmlEncode($this->clientOptions);
     $user = Json::htmlEncode($this->user);
     $view = $this->getView();
     ConversationAsset::register($view);
     $view->registerJs("jQuery('#{$id}').simpleChatConversations({$user},{$options});");
 }