mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-07 04:39:06 +02:00
When destroying the chart, any animations should be stopped.
This commit is contained in:
parent
d79bcb74ba
commit
f247536b4a
@ -434,6 +434,7 @@ module.exports = function(Chart) {
|
||||
},
|
||||
|
||||
destroy: function destroy() {
|
||||
this.stop();
|
||||
this.clear();
|
||||
helpers.unbindEvents(this, this.events);
|
||||
helpers.removeResizeListener(this.chart.canvas.parentNode);
|
||||
|
Loading…
Reference in New Issue
Block a user