]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
error thrown 1397/head
authorcoolbombom <cool_bombom@hotmail.com>
Fri, 21 Aug 2015 08:53:52 +0000 (10:53 +0200)
committercoolbombom <cool_bombom@hotmail.com>
Fri, 21 Aug 2015 08:53:52 +0000 (10:53 +0200)
error thrown (TypeError: this.scale is undefined) if destroy is called before animation is complete, this update fix this error!

src/Chart.Line.js

index 2ca73db6535ad801ba90cd6ed961919b5602b1c8..29848d6ad0839d738d602c3464060fc14da62d6b 100644 (file)
                                return helpers.findPreviousWhere(collection, hasValue, index) || point;
                        };
 
+                       if (!this.scale) return;
                        this.scale.draw(easingDecimal);