From: coolbombom Date: Fri, 21 Aug 2015 08:53:52 +0000 (+0200) Subject: error thrown X-Git-Tag: v1.1.0~55^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1397%2Fhead;p=thirdparty%2FChart.js.git error thrown error thrown (TypeError: this.scale is undefined) if destroy is called before animation is complete, this update fix this error! --- 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);