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,29 +244,33 @@ Phaser.Animation.prototype = {
},
/**
* Reverses the animation direction
*
* @method Phaser.Animation#reverse
* @return {Phaser.Animation} The animation instance.
* */
* Reverses the animation direction.
*
* @method Phaser.Animation#reverse
* @return {Phaser.Animation} The animation instance.
*/
reverse: function () {
this.reversed = !this.reversed;
return this;
},
/**
* 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.
*
* @method Phaser.Animation#reverseOnce
* @return {Phaser.Animation} The animation instance.
* */
* 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.
*
* @method Phaser.Animation#reverseOnce
* @return {Phaser.Animation} The animation instance.
*/
reverseOnce: function () {
this.onComplete.addOnce(this.reverse.bind(this));
this.onComplete.addOnce(this.reverse, this);
return this.reverse();
},
/**

View file

@ -207,9 +207,6 @@ Phaser.AnimationManager.prototype = {
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)
{
this.sprite.refreshTexture = true;