When destroying the chart, any animations should be stopped.

This commit is contained in:
Evert Timberg 2016-05-28 11:05:02 -04:00
parent d79bcb74ba
commit f247536b4a

View File

@ -434,6 +434,7 @@ module.exports = function(Chart) {
}, },
destroy: function destroy() { destroy: function destroy() {
this.stop();
this.clear(); this.clear();
helpers.unbindEvents(this, this.events); helpers.unbindEvents(this, this.events);
helpers.removeResizeListener(this.chart.canvas.parentNode); helpers.removeResizeListener(this.chart.canvas.parentNode);