Fixed: If an Animation instance is played more than once, the same promise is resolved each time leading to unexpected results. #774

This commit is contained in:
Rossen Hristov
2015-09-21 13:27:10 +03:00
parent bd44627e24
commit beef7f9372
7 changed files with 132 additions and 79 deletions

View File

@ -1099,7 +1099,7 @@ export class View extends proxy.ProxyObject implements definition.View {
}
public animate(animation: animationModule.AnimationDefinition): Promise<void> {
return this.createAnimation(animation).play().finished;
return this.createAnimation(animation).play();
}
public createAnimation(animation: animationModule.AnimationDefinition): animationModule.Animation {