From 58563fddf9eb719f8a6ffc604048a068b305f8a8 Mon Sep 17 00:00:00 2001 From: Jan Potoms Date: Thu, 21 Apr 2016 17:25:37 +0200 Subject: [PATCH] Fix typo in plugin 'destroy' --- src/core/core.controller.js | 2 +- src/core/core.plugin.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/core.controller.js b/src/core/core.controller.js index dd1245940..074cf591d 100644 --- a/src/core/core.controller.js +++ b/src/core/core.controller.js @@ -422,7 +422,7 @@ module.exports = function(Chart) { canvas.style.width = this.chart.originalCanvasStyleWidth; canvas.style.height = this.chart.originalCanvasStyleHeight; - Chart.pluginService.notifyPlugins('destory', [this]); + Chart.pluginService.notifyPlugins('destroy', [this]); delete Chart.instances[this.id]; }, diff --git a/src/core/core.plugin.js b/src/core/core.plugin.js index 8a82e4e94..35479098f 100644 --- a/src/core/core.plugin.js +++ b/src/core/core.plugin.js @@ -53,6 +53,6 @@ module.exports = function(Chart) { afterDraw: helpers.noop, // Called during destroy - destory: helpers.noop, + destroy: helpers.noop, }); -}; \ No newline at end of file +}; -- 2.47.2