From: Evert Timberg Date: Sat, 28 May 2016 15:05:02 +0000 (-0400) Subject: When destroying the chart, any animations should be stopped. X-Git-Tag: v2.1.5~31^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=refs%2Fpull%2F2660%2Fhead;p=thirdparty%2FChart.js.git When destroying the chart, any animations should be stopped. --- diff --git a/src/core/core.controller.js b/src/core/core.controller.js index a8a9ed58f..be5b93b00 100644 --- a/src/core/core.controller.js +++ b/src/core/core.controller.js @@ -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);