Skip to content

Commit 2e24010

Browse files
committed
fix(animations): add onDestroy method to NativeScriptAnimationPlayer
Needed in order to implement correctly the AnimationPlayer interface. Introduced by: angular/angular@4577b7c
1 parent 25c134d commit 2e24010

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

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

8989
onStart(fn: Function): void { this._startSubscriptions.push(fn); }
9090
onDone(fn: Function): void { this._doneSubscriptions.push(fn); }
91+
onDestroy(fn: Function): void { this._doneSubscriptions.push(fn); }
9192

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

0 commit comments

Comments
 (0)