original_string: public function registerClientScript()
  	{
  		$view = $this->getView();
  
  		if (isset($this->theme)) {
  			$path = $view->getAssetManager()->publish(__DIR__ . '/assets/css/themes');
  			$view->registerCSSFile($path[1] . '/' . $this->theme . '.css');
  
  			if ($this->theme == 'image' && isset($this->pluginOptions['scrollText'])) {
  				$this->pluginOptions['scrollText'] = '';
  			}
  		}
  
  		ScrollupAsset::register($view);
  
  		$options = empty($this->pluginOptions) ? '{}' : Json::encode($this->pluginOptions);
  		$js = "$.scrollUp($options);";
  		$view->registerJs($js);
  	}
code: public function registerClientScript()
  	{
  		$view = $this->getView();
  
  		if (isset($this->theme)) {
  			$path = $view->getAssetManager()->publish(__DIR__ . '/assets/css/themes');
  			$view->registerCSSFile($path[1] . '/' . $this->theme . '.css');
  
  			if ($this->theme == 'image' && isset($this->pluginOptions['scrollText'])) {
  				$this->pluginOptions['scrollText'] = '';
  			}
  		}
  
  		ScrollupAsset::register($view);
  
  		$options = empty($this->pluginOptions) ? '{}' : Json::encode($this->pluginOptions);
  		$js = "$.scrollUp($options);";
  		$view->registerJs($js);
  	}
code_tokens: public function registerClientScript ( ) { $ view = $ this -> getView ( ) ; if ( isset ( $ this -> theme ) ) { $ path = $ view -> getAssetManager ( ) -> publish ( __DIR__ . '/assets/css/themes' ) ; $ view -> registerCSSFile ( $ path [ 1 ] . '/' . $ this -> theme . '.css' ) ; if ( $ this -> theme == 'image' && isset ( $ this -> pluginOptions [ 'scrollText' ] ) ) { $ this -> pluginOptions [ 'scrollText' ] = '' ; } } ScrollupAsset :: register ( $ view ) ; $ options = empty ( $ this -> pluginOptions ) ? '{}' : Json :: encode ( $ this -> pluginOptions ) ; $ js = "$.scrollUp($options);" ; $ view -> registerJs ( $ js ) ; }
docstring: Registers the needed JavaScript and inject the JS initialization code.
  
  Note that if a supported theme is set, all css in the assets/css/theme folder are published
  but only the css for the theme is registred.Moreover, if the select theme is 'image', the
  'scrollText plugin option is cleared.
docstring_tokens: Registers the needed JavaScript and inject the JS initialization code .