Skip to content

Commit

Permalink
FIX object scope
Browse files Browse the repository at this point in the history
  • Loading branch information
digitv committed Jan 29, 2018
1 parent 26d3763 commit ce4450f
Show file tree
Hide file tree
Showing 3 changed files with 362 additions and 345 deletions.
2 changes: 1 addition & 1 deletion assets/Yii2LiveAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function registerAssetFiles($view)
$settingsJson = json_encode($settings);
$jsSettings = new JsExpression("
if(typeof yii2live === 'undefined') yii2live = new Yii2Live(" . $settingsJson . ");
else yii2live.settings.merge(" . $settingsJson . ");
else yii2live.settingsUtils.merge(" . $settingsJson . ");
");
/** @var $view View|\yii\web\View */
parent::registerAssetFiles($view);
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "digitv/yii2live",
"version": "1.1.8",
"version": "1.1.9",
"description": "Yii2 Live package",
"keywords": ["yii2", "ajax", "live", "node.js"],
"type": "yii2-extension",
Expand Down
Loading

0 comments on commit ce4450f

Please sign in to comment.