mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 20:29:12 +02:00
Merge pull request #2660 from chartjs/fix/2613
When destroying the chart, any animations should be stopped.
This commit is contained in:
commit
c1b8839a69
@ -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