mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
Merge pull request #1070 from mackuba/stop_animations
Stop animations when destroying a chart
This commit is contained in:
commit
ea0d93c970
@ -980,6 +980,7 @@
|
||||
return helpers.template(this.options.legendTemplate, {datasets: this.data.datasets});
|
||||
},
|
||||
destroy : function(){
|
||||
this.stop();
|
||||
this.clear();
|
||||
unbindEvents(this, this.events);
|
||||
var canvas = this.chart.canvas;
|
||||
|
Loading…
Reference in New Issue
Block a user