Skip to content

Commit b3cd887

Browse files
committed
fix(animations): implement finish method for player
1 parent 9bebc2a commit b3cd887

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: nativescript-angular/animations/animation-player.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,10 @@ export class NativeScriptAnimationPlayer implements AnimationPlayer {
5959
}
6060

6161
pause(): void {
62-
throw new Error("AnimationPlayer.pause method is not supported!");
6362
}
6463

6564
finish(): void {
66-
throw new Error("AnimationPlayer.finish method is not supported!");
65+
this.onFinish();
6766
}
6867

6968
reset(): void {
@@ -83,8 +82,6 @@ export class NativeScriptAnimationPlayer implements AnimationPlayer {
8382

8483
destroy(): void {
8584
traceLog(`NativeScriptAnimationPlayer.destroy`);
86-
87-
this.reset();
8885
this.onFinish();
8986
}
9087

0 commit comments

Comments
 (0)