original_string: protected function registerClientScripts()
      {
          $view = $this->getView();
          NoUiSliderAsset::register($view);
  
          $id = $this->sliderOptions['id'];
          $varName = $this->getUniqueId('slider_');
  
          if ($this->clientOptions !== false) {
              $options = empty($this->clientOptions) ? '{}' : Json::htmlEncode($this->clientOptions);
              $view->registerJs(<<<JS
  var $varName = document.getElementById('$id');
  noUiSlider.create($varName, {$options});
  JS
              );
          }
  
          $this->registerClientEvents($varName);
      }
code: protected function registerClientScripts()
      {
          $view = $this->getView();
          NoUiSliderAsset::register($view);
  
          $id = $this->sliderOptions['id'];
          $varName = $this->getUniqueId('slider_');
  
          if ($this->clientOptions !== false) {
              $options = empty($this->clientOptions) ? '{}' : Json::htmlEncode($this->clientOptions);
              $view->registerJs(<<<JS
  var $varName = document.getElementById('$id');
  noUiSlider.create($varName, {$options});
  JS
              );
          }
  
          $this->registerClientEvents($varName);
      }
code_tokens: protected function registerClientScripts ( ) { $ view = $ this -> getView ( ) ; NoUiSliderAsset :: register ( $ view ) ; $ id = $ this -> sliderOptions [ 'id' ] ; $ varName = $ this -> getUniqueId ( 'slider_' ) ; if ( $ this -> clientOptions !== false ) { $ options = empty ( $ this -> clientOptions ) ? '{}' : Json :: htmlEncode ( $ this -> clientOptions ) ; $ view -> registerJs ( <<<JS
  var $varName = document.getElementById('$id');
  noUiSlider.create($varName, {$options});
  JS ) ; } $ this -> registerClientEvents ( $ varName ) ; }
docstring: Registers all scripts needed by the underlying JS plugin.
docstring_tokens: Registers all scripts needed by the underlying JS plugin .