]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix typo in plugin 'destroy' 2318/head
authorJan Potoms <potoms.jan@gmail.com>
Thu, 21 Apr 2016 15:25:37 +0000 (17:25 +0200)
committerJan Potoms <potoms.jan@gmail.com>
Thu, 21 Apr 2016 15:25:37 +0000 (17:25 +0200)
src/core/core.controller.js
src/core/core.plugin.js

index dd12459400bcd26496adc82c367cef55b720d7d1..074cf591daf79affb61c318b463e2fd535fa3a5d 100644 (file)
@@ -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];
                },
index 8a82e4e944a8e8a4f7cb49170230a2af4b81c964..35479098f1d98c16ff2758bb01f20431825bece0 100644 (file)
@@ -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
+};