From ec07ec3a52479da328e1f4e2dea10a34684b4ce7 Mon Sep 17 00:00:00 2001 From: sis0k0 Date: Tue, 21 Feb 2017 11:03:06 +0200 Subject: [PATCH] fix(animations): add onDestroy method to NativeScriptAnimationPlayer Needed in order to implement correctly the AnimationPlayer interface. Introduced by: https://github.com/angular/angular/pull/14351/commits/4577b7c2ad9b4655e621628cd8842bc624ae1ccf --- nativescript-angular/animation-player.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/nativescript-angular/animation-player.ts b/nativescript-angular/animation-player.ts index c03805c7e..6238d50ec 100644 --- a/nativescript-angular/animation-player.ts +++ b/nativescript-angular/animation-player.ts @@ -87,6 +87,7 @@ export class NativeScriptAnimationPlayer implements AnimationPlayer { onStart(fn: Function): void { this._startSubscriptions.push(fn); } onDone(fn: Function): void { this._doneSubscriptions.push(fn); } + onDestroy(fn: Function): void { this._doneSubscriptions.push(fn); } private _onStart() { if (!this._started) {