beforeAction() public method

public beforeAction ( $action )
 /**
  * Set up the CSS.
  *
  * We need to set up the CSS here, after the parent is called, because the parent class removes the previously
  * registered scripts.
  *
  * @param CAction $action
  *
  * @return bool
  */
 public function beforeAction($action)
 {
     $before = parent::beforeAction($action);
     //core scripts
     $assetPath = Yii::app()->getAssetManager()->publish(Yii::getPathOfAlias('application.assets'), false, -1);
     Yii::app()->clientScript->registerScriptFile($assetPath . '/components/mustache/mustache.js');
     Yii::app()->clientScript->registerScriptFile($assetPath . '/js/dashboard/OpenEyes.Dialog.js');
     Yii::app()->clientScript->registerScriptFile($assetPath . '/js/dashboard/whiteboard.js');
     $assetPath = Yii::app()->getAssetManager()->publish(Yii::getPathOfAlias('application.modules.' . $this->getModule()->name . '.assets'), false, -1);
     Yii::app()->clientScript->registerCssFile($assetPath . '/css/whiteboard.css');
     return $before;
 }