mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
Merge pull request #2318 from Janpot/destroy-typo
Fix typo in plugin 'destroy'
This commit is contained in:
commit
8e37b81378
@ -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,
|
||||
});
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user