@@ -136,7 +136,7 @@ cc.TransitionProgressRadialCCW = cc.TransitionProgress.extend(/** @lends cc.Tran
136
136
137
137
// but it is flipped upside down so we flip the sprite
138
138
if ( cc . renderContextType === cc . WEBGL )
139
- pNode . getSprite ( ) . setFlipY ( true ) ;
139
+ pNode . getSprite ( ) . setFlippedY ( true ) ;
140
140
pNode . setType ( cc . PROGRESS_TIMER_TYPE_RADIAL ) ;
141
141
142
142
// Return the radial type that we want to use
@@ -178,7 +178,7 @@ cc.TransitionProgressRadialCW = cc.TransitionProgress.extend(/** @lends cc.Trans
178
178
179
179
// but it is flipped upside down so we flip the sprite
180
180
if ( cc . renderContextType === cc . WEBGL )
181
- pNode . getSprite ( ) . setFlipY ( true ) ;
181
+ pNode . getSprite ( ) . setFlippedY ( true ) ;
182
182
pNode . setType ( cc . PROGRESS_TIMER_TYPE_RADIAL ) ;
183
183
184
184
// Return the radial type that we want to use
@@ -219,8 +219,8 @@ cc.TransitionProgressHorizontal = cc.TransitionProgress.extend(/** @lends cc.Tra
219
219
var pNode = cc . ProgressTimer . create ( texture . getSprite ( ) ) ;
220
220
221
221
// but it is flipped upside down so we flip the sprite
222
- if ( cc . renderContextType == cc . WEBGL )
223
- pNode . getSprite ( ) . setFlipY ( true ) ;
222
+ if ( cc . renderContextType === cc . WEBGL )
223
+ pNode . getSprite ( ) . setFlippedY ( true ) ;
224
224
pNode . setType ( cc . PROGRESS_TIMER_TYPE_BAR ) ;
225
225
226
226
pNode . setMidpoint ( cc . p ( 1 , 0 ) ) ;
@@ -261,8 +261,8 @@ cc.TransitionProgressVertical = cc.TransitionProgress.extend(/** @lends cc.Trans
261
261
var pNode = cc . ProgressTimer . create ( texture . getSprite ( ) ) ;
262
262
263
263
// but it is flipped upside down so we flip the sprite
264
- if ( cc . renderContextType == cc . WEBGL )
265
- pNode . getSprite ( ) . setFlipY ( true ) ;
264
+ if ( cc . renderContextType === cc . WEBGL )
265
+ pNode . getSprite ( ) . setFlippedY ( true ) ;
266
266
pNode . setType ( cc . PROGRESS_TIMER_TYPE_BAR ) ;
267
267
268
268
pNode . setMidpoint ( cc . p ( 0 , 0 ) ) ;
@@ -302,8 +302,8 @@ cc.TransitionProgressInOut = cc.TransitionProgress.extend(/** @lends cc.Transiti
302
302
var pNode = cc . ProgressTimer . create ( texture . getSprite ( ) ) ;
303
303
304
304
// but it is flipped upside down so we flip the sprite
305
- if ( cc . renderContextType == cc . WEBGL )
306
- pNode . getSprite ( ) . setFlipY ( true ) ;
305
+ if ( cc . renderContextType === cc . WEBGL )
306
+ pNode . getSprite ( ) . setFlippedY ( true ) ;
307
307
pNode . setType ( cc . PROGRESS_TIMER_TYPE_BAR ) ;
308
308
309
309
pNode . setMidpoint ( cc . p ( 0.5 , 0.5 ) ) ;
@@ -351,8 +351,8 @@ cc.TransitionProgressOutIn = cc.TransitionProgress.extend(/** @lends cc.Transiti
351
351
var pNode = cc . ProgressTimer . create ( texture . getSprite ( ) ) ;
352
352
353
353
// but it is flipped upside down so we flip the sprite
354
- if ( cc . renderContextType == cc . WEBGL )
355
- pNode . getSprite ( ) . setFlipY ( true ) ;
354
+ if ( cc . renderContextType === cc . WEBGL )
355
+ pNode . getSprite ( ) . setFlippedY ( true ) ;
356
356
pNode . setType ( cc . PROGRESS_TIMER_TYPE_BAR ) ;
357
357
358
358
pNode . setMidpoint ( cc . p ( 0.5 , 0.5 ) ) ;
0 commit comments