Merge pull request #2318 from Janpot/destroy-typo

Fix typo in plugin 'destroy'
This commit is contained in:
Evert Timberg 2016-04-21 11:47:20 -04:00
commit 8e37b81378
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,
});
};
};