]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
When destroying the chart, any animations should be stopped. 2660/head
authorEvert Timberg <evert.timberg+github@gmail.com>
Sat, 28 May 2016 15:05:02 +0000 (11:05 -0400)
committerEvert Timberg <evert.timberg+github@gmail.com>
Sat, 28 May 2016 15:05:02 +0000 (11:05 -0400)
src/core/core.controller.js

index a8a9ed58f67d2abba2b5ea2c4424681821a5bb4e..be5b93b00f08013b5cf5e017adc5760e9c101eb7 100644 (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);