mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-07 04:39:06 +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() {
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user