Skip to content

Commit a0cc602

Browse files
authored
cancel reverse animation
1 parent 98ceb32 commit a0cc602

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

src/animations/Animation.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ var GetValue = require('../utils/object/GetValue');
5151
* @property {boolean} [yoyo=false] - Should the animation yoyo? (reverse back down to the start) before repeating?
5252
* @property {boolean} [showOnStart=false] - Should sprite.visible = true when the animation starts to play?
5353
* @property {boolean} [hideOnComplete=false] - Should sprite.visible = false when the animation finishes?
54-
* @property {boolean} [reverse=false] - Should the animation be played in reversed sequence?
5554
*/
5655

5756
/**
@@ -107,13 +106,6 @@ var Animation = new Class({
107106
*/
108107
this.type = 'frame';
109108

110-
// if config.reverse is true, reverse sequence of AnimationFrameConfig[]
111-
var animFrames = GetValue(config, 'frames', []);
112-
if(GetValue(config, 'reverse', false))
113-
{
114-
animFrames.reverse();
115-
}
116-
117109
/**
118110
* Extract all the frame data into the frames array
119111
*
@@ -123,7 +115,7 @@ var Animation = new Class({
123115
*/
124116
this.frames = this.getFrames(
125117
manager.textureManager,
126-
animFrames,
118+
GetValue(config, 'frames', []),
127119
GetValue(config, 'defaultTextureKey', null)
128120
);
129121

0 commit comments

Comments
 (0)