Merge pull request #2660 from chartjs/fix/2613

When destroying the chart, any animations should be stopped.
This commit is contained in:
Evert Timberg 2016-05-28 11:26:09 -04:00
commit c1b8839a69

View File

@ -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);