Merge pull request #1258 from cebe/self-static

Changed usage of self to static to allow extendibility
This commit is contained in:
Qiang Xue
2013-11-20 12:29:04 -08:00
6 changed files with 42 additions and 42 deletions

View File

@@ -66,7 +66,7 @@ class Widget extends \yii\base\Widget
/** @var \yii\web\AssetBundle $assetBundle */
$assetBundle::register($view);
/** @var \yii\web\AssetBundle $themeAsset */
$themeAsset = self::$theme;
$themeAsset = static::$theme;
$themeAsset::register($view);
$id = $this->options['id'];