fix(animations): make sure animation cancellations respect AUTO style values (#18787)

Closes #17450

PR Close #18787
This commit is contained in:
Matias Niemelä
2017-08-17 16:35:55 -07:00
committed by Miško Hevery
parent e25f05ae7c
commit 29aa8b33df
3 changed files with 15 additions and 12 deletions

View File

@ -158,9 +158,9 @@ export class WebAnimationsPlayer implements AnimationPlayer {
destroy(): void {
if (!this._destroyed) {
this._destroyed = true;
this._resetDomPlayerState();
this._onFinish();
this._destroyed = true;
this._onDestroyFns.forEach(fn => fn());
this._onDestroyFns = [];
}