Fixed code formatting.

This commit is contained in:
photonstorm 2016-08-17 11:28:03 +01:00
parent 129a652f07
commit bfb12d9dba
2 changed files with 17 additions and 16 deletions

View file

@ -244,15 +244,17 @@ Phaser.Animation.prototype = {
}, },
/** /**
* Reverses the animation direction * Reverses the animation direction.
* *
* @method Phaser.Animation#reverse * @method Phaser.Animation#reverse
* @return {Phaser.Animation} The animation instance. * @return {Phaser.Animation} The animation instance.
* */ */
reverse: function () { reverse: function () {
this.reversed = !this.reversed; this.reversed = !this.reversed;
return this; return this;
}, },
/** /**
@ -262,11 +264,13 @@ Phaser.Animation.prototype = {
* *
* @method Phaser.Animation#reverseOnce * @method Phaser.Animation#reverseOnce
* @return {Phaser.Animation} The animation instance. * @return {Phaser.Animation} The animation instance.
* */ */
reverseOnce: function () { reverseOnce: function () {
this.onComplete.addOnce(this.reverse.bind(this));
this.onComplete.addOnce(this.reverse, this);
return this.reverse(); return this.reverse();
}, },
/** /**

View file

@ -207,9 +207,6 @@ Phaser.AnimationManager.prototype = {
this.currentAnim = this._anims[name]; this.currentAnim = this._anims[name];
// This shouldn't be set until the Animation is played, surely?
// this.currentFrame = this.currentAnim.currentFrame;
if (this.sprite.tilingTexture) if (this.sprite.tilingTexture)
{ {
this.sprite.refreshTexture = true; this.sprite.refreshTexture = true;