behaviors/TbWidget.php
protected function getClientScript()
    {
        if (isset($this->_clientScript)) {
            return $this->_clientScript;
        } else {
            if (!Yii::app()->hasComponent('clientScript')) {
                return false;
            }
            return $this->_clientScript = Yii::app()->getComponent('clientScript');
        }
    }
protected function getClientScript()
    {
        if (isset($this->_clientScript)) {
            return $this->_clientScript;
        } else {
            if (!Yii::app()->hasComponent('clientScript')) {
                return false;
            }
            return $this->_clientScript = Yii::app()->getComponent('clientScript');
        }
    }
protected function getClientScript ( ) { if ( isset ( $ this -> _clientScript ) ) { return $ this -> _clientScript ; } else { if ( ! Yii :: app ( ) -> hasComponent ( 'clientScript' ) ) { return false ; } return $ this -> _clientScript = Yii :: app ( ) -> getComponent ( 'clientScript' ) ; } }
Returns the client script component.
@return CClientScript the component.
Returns the client script component .