Fix animations crash

This commit is contained in:
Tsvetan Raikov
2016-04-19 16:55:15 +03:00
parent c10beedf05
commit 9809a458f4

View File

@@ -105,8 +105,10 @@ export class KeyframeAnimation {
this._isPlaying = false;
for (let i = this._nativeAnimations.length - 1; i >= 0; i--) {
let animation = this._nativeAnimations[i];
if (animation.isPlaying) {
animation.cancel();
}
}
this._rejectAnimationFinishedPromise();
}
}