Fix typo in plugin 'destroy'

This commit is contained in:
Jan Potoms
2016-04-21 17:25:37 +02:00
parent 76b3494a0a
commit 58563fddf9
2 changed files with 3 additions and 3 deletions

View 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];
},

View File

@@ -53,6 +53,6 @@ module.exports = function(Chart) {
afterDraw: helpers.noop,
// Called during destroy
destory: helpers.noop,
destroy: helpers.noop,
});
};
};