onAnimationComplete for zero-frame transitions

This commit is contained in:
Tanner Linsley 2015-08-07 13:39:09 -06:00
parent 3f24389f36
commit f5b44acc38

View File

@ -258,7 +258,9 @@
Chart.animationService.addAnimation(this, animation, duration, lazy);
} else {
this.draw();
this.options.onAnimationComplete.call(this);
if (this.options.onAnimationComplete && this.options.onAnimationComplete.call) {
this.options.onAnimationComplete.call(this);
}
}
return this;
},