]> git.ipfire.org Git - thirdparty/Chart.js.git/commit
Allow to register/unregister an array of plugins
authorSimon Brunel <simonbrunel@users.noreply.github.com>
Fri, 10 Jun 2016 20:27:06 +0000 (22:27 +0200)
committerSimon Brunel <simonbrunel@users.noreply.github.com>
Fri, 10 Jun 2016 22:17:44 +0000 (00:17 +0200)
commitdfdbd4465c6d35760aca60e7ff9bc58b62ac7cb9
treec88fa22a016f4e87c5eb73e943ba49b7abb3ccdb
parenta55c17d73fa7bfa9e2780fce3ea9a7770a11d8d3
Allow to register/unregister an array of plugins

The plugins service now accepts an array of plugin instances to register or unregister (for consistency, renamed `Chart.plugins.remove` to `unregister`). Also added a few methods to manipulate registered plugins, such as `count`, `getAll` and `clear` (mainly used by our unit tests).
src/core/core.plugin.js
test/core.plugin.tests.js