mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
onAnimationComplete for zero-frame transitions
This commit is contained in:
parent
3f24389f36
commit
f5b44acc38
@ -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;
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user