Added typescript defs; Fixed jshint.

This commit is contained in:
gotenxds 2016-05-27 18:04:33 +03:00
parent d4636e9e81
commit ae3ebf00cd
3 changed files with 10 additions and 1 deletions

View file

@ -262,7 +262,7 @@ Phaser.Animation.prototype = {
reverseOnce: function () {
this.reverse();
this.onComplete.addOnce(this.reverse.bind(this))
this.onComplete.addOnce(this.reverse.bind(this));
},
/**

View file

@ -262,6 +262,14 @@ declare module "phaser" {
*/
reverse(): void;
/**
* Reverses the animation direction for the current/next animation only
* Once the onComplete event is called this method will be called again and revert
* the reversed state.
*/
reverseOnce(): void;
/**
* Sets this animations playback to a given frame with the given ID.
*

View file

@ -92,6 +92,7 @@ declare module "phaser" {
previous(quantity?: number): void;
restart(): void;
reverse(): void;
reverseOnce(): void;
setFrame(frameId?: string | number, useLocalFrameIndex?: boolean): void;
stop(resetFrame?: boolean, dispatchComplete?: boolean): void;
update(): boolean;