mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-11 10:46:52 +01:00
Fix typo in plugin 'destroy'
This commit is contained in:
@@ -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];
|
||||
},
|
||||
|
||||
@@ -53,6 +53,6 @@ module.exports = function(Chart) {
|
||||
afterDraw: helpers.noop,
|
||||
|
||||
// Called during destroy
|
||||
destory: helpers.noop,
|
||||
destroy: helpers.noop,
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user