Skip to content

Commit

Permalink
fix(animations): add onDestroy method to NativeScriptAnimationPlayer
Browse files Browse the repository at this point in the history
Needed in order to implement correctly the AnimationPlayer interface.
Introduced by: angular/angular@4577b7c
  • Loading branch information
sis0k0 committed Mar 16, 2017
1 parent 25c134d commit 2e24010
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nativescript-angular/animation-player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,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) {
Expand Down

0 comments on commit 2e24010

Please sign in to comment.