]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix the parameter order of before/afterEvent (#7757)
authorJukka Kurkela <jukka.kurkela@gmail.com>
Fri, 4 Sep 2020 20:47:08 +0000 (23:47 +0300)
committerGitHub <noreply@github.com>
Fri, 4 Sep 2020 20:47:08 +0000 (16:47 -0400)
src/core/core.plugins.js

index 4ceab715ec1f67d3c84249df31b47bf97caaeda4..d24b4d56a4ae2c09d711053a5a3370a130d0ee22 100644 (file)
@@ -289,8 +289,8 @@ function createDescriptors(plugins, options) {
  * the event will be discarded.
  * @param {Chart} chart - The chart instance.
  * @param {IEvent} event - The event object.
- * @param {object} options - The plugin options.
  * @param {boolean} replay - True if this event is replayed from `Chart.update`
+ * @param {object} options - The plugin options.
  */
 /**
  * @method IPlugin#afterEvent
@@ -298,8 +298,8 @@ function createDescriptors(plugins, options) {
  * will not be called if the `event` has been previously discarded.
  * @param {Chart} chart - The chart instance.
  * @param {IEvent} event - The event object.
- * @param {object} options - The plugin options.
  * @param {boolean} replay - True if this event is replayed from `Chart.update`
+ * @param {object} options - The plugin options.
  */
 /**
  * @method IPlugin#resize