From 80ba5aa1c545534b8f3bf008221ce513870b94f2 Mon Sep 17 00:00:00 2001 From: coolbombom Date: Fri, 21 Aug 2015 10:53:52 +0200 Subject: [PATCH] error thrown error thrown (TypeError: this.scale is undefined) if destroy is called before animation is complete, this update fix this error! --- src/Chart.Line.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Chart.Line.js b/src/Chart.Line.js index 2ca73db65..29848d6ad 100644 --- a/src/Chart.Line.js +++ b/src/Chart.Line.js @@ -275,6 +275,7 @@ return helpers.findPreviousWhere(collection, hasValue, index) || point; }; + if (!this.scale) return; this.scale.draw(easingDecimal); -- 2.47.2