]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Plugin hooks and jsdoc enhancements
authorSimon Brunel <simonbrunel@users.noreply.github.com>
Sun, 22 Jan 2017 19:13:40 +0000 (20:13 +0100)
committerEvert Timberg <evert.timberg+github@gmail.com>
Sat, 28 Jan 2017 00:32:35 +0000 (19:32 -0500)
commit979341ecb094d9c6a95de8a47e7836f01587e7d2
tree9e6cfbb0774d9387f3e72ad2e9dc2185a57d9cc6
parentc6fa4e55822e20b2bdd31d39bc18e19d53cd8966
Plugin hooks and jsdoc enhancements

Make all `before` hooks cancellable (except `beforeInit`), meaning that if any plugin return explicitly `false`, the current action is not performed. Ensure that `init` hooks are called before `update` hooks and add associated calling order unit tests. Deprecate `Chart.PluginBase` in favor of `IPlugin` (no more an inheritable class) and document plugin hooks (also rename `extension` by `hook`).
docs/09-Advanced.md
src/core/core.controller.js
src/core/core.plugin.js
test/core.controller.tests.js