@@ -457,7 +457,7 @@ cc.FadeOutTRTiles = cc.TiledGrid3DAction.extend(/** @lends cc.FadeOutTRTiles# */
457
457
testFunc :function ( pos , time ) {
458
458
var locX = this . _gridSize . width * time ;
459
459
var locY = this . _gridSize . height * time ;
460
- if ( ( locX + locY ) == 0.0 )
460
+ if ( ( locX + locY ) === 0.0 )
461
461
return 1.0 ;
462
462
return Math . pow ( ( pos . width + pos . height ) / ( locX + locY ) , 6 ) ;
463
463
} ,
@@ -516,7 +516,7 @@ cc.FadeOutTRTiles = cc.TiledGrid3DAction.extend(/** @lends cc.FadeOutTRTiles# */
516
516
locSize . width = i ;
517
517
locSize . height = j ;
518
518
distance = this . testFunc ( locSize , dt ) ;
519
- if ( distance == 0 )
519
+ if ( distance === 0 )
520
520
this . turnOffTile ( locPos ) ;
521
521
else if ( distance < 1 )
522
522
this . transformTile ( locPos , distance ) ;
@@ -566,7 +566,7 @@ cc.FadeOutBLTiles = cc.FadeOutTRTiles.extend(/** @lends cc.FadeOutBLTiles# */{
566
566
testFunc :function ( pos , time ) {
567
567
var locX = this . _gridSize . width * ( 1.0 - time ) ;
568
568
var locY = this . _gridSize . height * ( 1.0 - time ) ;
569
- if ( ( pos . width + pos . height ) == 0 )
569
+ if ( ( pos . width + pos . height ) === 0 )
570
570
return 1.0 ;
571
571
572
572
return Math . pow ( ( locX + locY ) / ( pos . width + pos . height ) , 6 ) ;
@@ -606,7 +606,7 @@ cc.FadeOutBLTiles.create = cc.fadeOutBLTiles;
606
606
cc . FadeOutUpTiles = cc . FadeOutTRTiles . extend ( /** @lends cc.FadeOutUpTiles# */ {
607
607
testFunc :function ( pos , time ) {
608
608
var locY = this . _gridSize . height * time ;
609
- if ( locY == 0.0 )
609
+ if ( locY === 0.0 )
610
610
return 1.0 ;
611
611
return Math . pow ( pos . height / locY , 6 ) ;
612
612
} ,
@@ -657,7 +657,7 @@ cc.FadeOutUpTiles.create = cc.fadeOutUpTiles;
657
657
cc . FadeOutDownTiles = cc . FadeOutUpTiles . extend ( /** @lends cc.FadeOutDownTiles# */ {
658
658
testFunc :function ( pos , time ) {
659
659
var locY = this . _gridSize . height * ( 1.0 - time ) ;
660
- if ( pos . height == 0 )
660
+ if ( pos . height === 0 )
661
661
return 1.0 ;
662
662
return Math . pow ( locY / pos . height , 6 ) ;
663
663
}
@@ -1057,7 +1057,7 @@ cc.JumpTiles3D = cc.TiledGrid3DAction.extend(/** @lends cc.JumpTiles3D# */{
1057
1057
//var coords = this.originalTile(cc.p(i, j));
1058
1058
coords = locGrid . originalTile ( locPos ) ;
1059
1059
1060
- if ( ( ( i + j ) % 2 ) == 0 ) {
1060
+ if ( ( ( i + j ) % 2 ) === 0 ) {
1061
1061
coords . bl . z += sinz ;
1062
1062
coords . br . z += sinz ;
1063
1063
coords . tl . z += sinz ;
@@ -1150,7 +1150,7 @@ cc.SplitRows = cc.TiledGrid3DAction.extend(/** @lends cc.SplitRows# */{
1150
1150
coords = this . originalTile ( locPos ) ;
1151
1151
direction = 1 ;
1152
1152
1153
- if ( ( j % 2 ) == 0 )
1153
+ if ( ( j % 2 ) === 0 )
1154
1154
direction = - 1 ;
1155
1155
1156
1156
coords . bl . x += direction * locWinSizeWidth * dt ;
@@ -1241,7 +1241,7 @@ cc.SplitCols = cc.TiledGrid3DAction.extend(/** @lends cc.SplitCols# */{
1241
1241
coords = this . originalTile ( locPos ) ;
1242
1242
direction = 1 ;
1243
1243
1244
- if ( ( i % 2 ) == 0 )
1244
+ if ( ( i % 2 ) === 0 )
1245
1245
direction = - 1 ;
1246
1246
1247
1247
coords . bl . y += direction * locWinSizeHeight * dt ;
0 commit comments