From 66f7f96d4b0f8a03b67a45c43f20c1155935f792 Mon Sep 17 00:00:00 2001 From: Kuba Suder Date: Thu, 16 Apr 2015 22:40:34 +0200 Subject: [PATCH] stop animations when destroying a chart otherwise the animation keeps updating the chart for some time after it was supposed to be destroyed, and when the canvas might have been already reused for a new chart --- src/Chart.Core.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Chart.Core.js b/src/Chart.Core.js index 296844ea2..83bfdfb32 100755 --- a/src/Chart.Core.js +++ b/src/Chart.Core.js @@ -952,6 +952,7 @@ return template(this.options.legendTemplate,this); }, destroy : function(){ + this.stop(); this.clear(); unbindEvents(this, this.events); var canvas = this.chart.canvas; -- 2.47.3