File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments