From: Jan Potoms Date: Thu, 21 Apr 2016 15:25:37 +0000 (+0200) Subject: Fix typo in plugin 'destroy' X-Git-Tag: 2.1.0~58^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2318%2Fhead;p=thirdparty%2FChart.js.git Fix typo in plugin 'destroy' --- 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 +};