fix(animations): capture cancelled animation styles within grouped animations

Closes #17170
This commit is contained in:
Matias Niemelä
2017-07-17 10:25:15 -04:00
committed by Alex Rickabaugh
parent d4679a0bc2
commit 333ffd8d32
3 changed files with 99 additions and 5 deletions

View File

@ -132,4 +132,12 @@ export class AnimationGroupPlayer implements AnimationPlayer {
}
get players(): AnimationPlayer[] { return this._players; }
beforeDestroy(): void {
this.players.forEach(player => {
if (player.beforeDestroy) {
player.beforeDestroy();
}
});
}
}