Skip to content

Commit ae3ebf0

Browse files
author
gotenxds
committed
Added typescript defs; Fixed jshint.
1 parent d4636e9 commit ae3ebf0

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

src/animation/Animation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ Phaser.Animation.prototype = {
262262
reverseOnce: function () {
263263
this.reverse();
264264

265-
this.onComplete.addOnce(this.reverse.bind(this))
265+
this.onComplete.addOnce(this.reverse.bind(this));
266266
},
267267

268268
/**

typescript/phaser.comments.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,14 @@ declare module "phaser" {
262262
*/
263263
reverse(): void;
264264

265+
/**
266+
* Reverses the animation direction for the current/next animation only
267+
* Once the onComplete event is called this method will be called again and revert
268+
* the reversed state.
269+
*/
270+
reverseOnce(): void;
271+
272+
265273
/**
266274
* Sets this animations playback to a given frame with the given ID.
267275
*

typescript/phaser.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ declare module "phaser" {
9292
previous(quantity?: number): void;
9393
restart(): void;
9494
reverse(): void;
95+
reverseOnce(): void;
9596
setFrame(frameId?: string | number, useLocalFrameIndex?: boolean): void;
9697
stop(resetFrame?: boolean, dispatchComplete?: boolean): void;
9798
update(): boolean;

0 commit comments

Comments
 (0)