Skip to content

Commit

Permalink
Fixed code formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
photonstorm committed Aug 17, 2016
1 parent 129a652 commit bfb12d9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
30 changes: 17 additions & 13 deletions src/animation/Animation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

},

/**
Expand Down
3 changes: 0 additions & 3 deletions src/animation/AnimationManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bfb12d9

Please sign in to comment.