error thrown

error thrown (TypeError: this.scale is undefined) if destroy is called before animation is complete, this update fix this error!
This commit is contained in:
coolbombom 2015-08-21 10:53:52 +02:00
parent ac360b8dd1
commit 80ba5aa1c5

View File

@ -275,6 +275,7 @@
return helpers.findPreviousWhere(collection, hasValue, index) || point; return helpers.findPreviousWhere(collection, hasValue, index) || point;
}; };
if (!this.scale) return;
this.scale.draw(easingDecimal); this.scale.draw(easingDecimal);