This adds the ability to Cancel the Animation via the Promise returned via a play command.

This commit is contained in:
Nathanael Anderson
2016-03-21 22:52:55 -06:00
parent 25852e9bc6
commit ccdc394be4
7 changed files with 104 additions and 13 deletions

View File

@@ -88,7 +88,7 @@ export class Animation extends common.Animation implements definition.Animation
private _cancelledAnimations: number;
private _mergedPropertyAnimations: Array<common.PropertyAnimation>;
public play(): Promise<void> {
public play(): definition.AnimationPromise {
var animationFinishedPromise = super.play();
this._finishedAnimations = 0;
this._cancelledAnimations = 0;