Skip to content

Commit

Permalink
Combining customize method into chart constructor
Browse files Browse the repository at this point in the history
This will provide restriction free option setting without
the extra method call.
  • Loading branch information
kevinkhill committed Mar 17, 2016
1 parent 31f2738 commit a218a91
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,11 @@
- 3.0.2
- Blade template extension bug fixes
- Combining the ```customize``` method into the constructor to provide
restriction free option setting without the extra method call.

- 3.0.1
- Bug fixes

- 3.0.0
- Dropping support for PHP 5.3
- Minimum version PHP 5.4+
Expand Down
9 changes: 8 additions & 1 deletion src/JsonConfig.php
Expand Up @@ -49,7 +49,14 @@ public function __construct(Options $options, $config = [])
}

if (empty($config) === false) {
$this->setOptions($config);
/**
* Patching 3.1 behavior into 3.0
*
* Just realized that porting the customize method into here, will
* implement the 3.1 behavior of setting any option, regardless
* of each charts' "defaultOptions"
*/
$this->options->setOptions($config, false);
}
}

Expand Down

0 comments on commit a218a91

Please sign in to comment.