Skip to content

Commit 2e45d76

Browse files
sis0k0hdeshev
authored andcommitted
fix(animations): add onDestroy method to NativeScriptAnimationPlayer
Needed in order to implement correctly the AnimationPlayer interface. Introduced by: angular/angular@4577b7c
1 parent 3031d2f commit 2e45d76

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nativescript-angular/animation-player.ts

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export class NativeScriptAnimationPlayer implements AnimationPlayer {
8787

8888
onStart(fn: Function): void { this._startSubscriptions.push(fn); }
8989
onDone(fn: Function): void { this._doneSubscriptions.push(fn); }
90+
onDestroy(fn: Function): void { this._doneSubscriptions.push(fn); }
9091

9192
private _onStart() {
9293
if (!this._started) {

0 commit comments

Comments
 (0)