@@ -1180,34 +1180,34 @@ Phaser.Group.prototype.setProperty = function (child, key, value, operation, for
11801180 if ( len === 1 )
11811181 {
11821182 if ( operation === 0 ) { child [ key [ 0 ] ] = value ; }
1183- else if ( operation == 1 ) { child [ key [ 0 ] ] += value ; }
1184- else if ( operation == 2 ) { child [ key [ 0 ] ] -= value ; }
1185- else if ( operation == 3 ) { child [ key [ 0 ] ] *= value ; }
1186- else if ( operation == 4 ) { child [ key [ 0 ] ] /= value ; }
1183+ else if ( operation === 1 ) { child [ key [ 0 ] ] += value ; }
1184+ else if ( operation === 2 ) { child [ key [ 0 ] ] -= value ; }
1185+ else if ( operation === 3 ) { child [ key [ 0 ] ] *= value ; }
1186+ else if ( operation === 4 ) { child [ key [ 0 ] ] /= value ; }
11871187 }
11881188 else if ( len === 2 )
11891189 {
11901190 if ( operation === 0 ) { child [ key [ 0 ] ] [ key [ 1 ] ] = value ; }
1191- else if ( operation == 1 ) { child [ key [ 0 ] ] [ key [ 1 ] ] += value ; }
1192- else if ( operation == 2 ) { child [ key [ 0 ] ] [ key [ 1 ] ] -= value ; }
1193- else if ( operation == 3 ) { child [ key [ 0 ] ] [ key [ 1 ] ] *= value ; }
1194- else if ( operation == 4 ) { child [ key [ 0 ] ] [ key [ 1 ] ] /= value ; }
1191+ else if ( operation === 1 ) { child [ key [ 0 ] ] [ key [ 1 ] ] += value ; }
1192+ else if ( operation === 2 ) { child [ key [ 0 ] ] [ key [ 1 ] ] -= value ; }
1193+ else if ( operation === 3 ) { child [ key [ 0 ] ] [ key [ 1 ] ] *= value ; }
1194+ else if ( operation === 4 ) { child [ key [ 0 ] ] [ key [ 1 ] ] /= value ; }
11951195 }
11961196 else if ( len === 3 )
11971197 {
11981198 if ( operation === 0 ) { child [ key [ 0 ] ] [ key [ 1 ] ] [ key [ 2 ] ] = value ; }
1199- else if ( operation == 1 ) { child [ key [ 0 ] ] [ key [ 1 ] ] [ key [ 2 ] ] += value ; }
1200- else if ( operation == 2 ) { child [ key [ 0 ] ] [ key [ 1 ] ] [ key [ 2 ] ] -= value ; }
1201- else if ( operation == 3 ) { child [ key [ 0 ] ] [ key [ 1 ] ] [ key [ 2 ] ] *= value ; }
1202- else if ( operation == 4 ) { child [ key [ 0 ] ] [ key [ 1 ] ] [ key [ 2 ] ] /= value ; }
1199+ else if ( operation === 1 ) { child [ key [ 0 ] ] [ key [ 1 ] ] [ key [ 2 ] ] += value ; }
1200+ else if ( operation === 2 ) { child [ key [ 0 ] ] [ key [ 1 ] ] [ key [ 2 ] ] -= value ; }
1201+ else if ( operation === 3 ) { child [ key [ 0 ] ] [ key [ 1 ] ] [ key [ 2 ] ] *= value ; }
1202+ else if ( operation === 4 ) { child [ key [ 0 ] ] [ key [ 1 ] ] [ key [ 2 ] ] /= value ; }
12031203 }
12041204 else if ( len === 4 )
12051205 {
12061206 if ( operation === 0 ) { child [ key [ 0 ] ] [ key [ 1 ] ] [ key [ 2 ] ] [ key [ 3 ] ] = value ; }
1207- else if ( operation == 1 ) { child [ key [ 0 ] ] [ key [ 1 ] ] [ key [ 2 ] ] [ key [ 3 ] ] += value ; }
1208- else if ( operation == 2 ) { child [ key [ 0 ] ] [ key [ 1 ] ] [ key [ 2 ] ] [ key [ 3 ] ] -= value ; }
1209- else if ( operation == 3 ) { child [ key [ 0 ] ] [ key [ 1 ] ] [ key [ 2 ] ] [ key [ 3 ] ] *= value ; }
1210- else if ( operation == 4 ) { child [ key [ 0 ] ] [ key [ 1 ] ] [ key [ 2 ] ] [ key [ 3 ] ] /= value ; }
1207+ else if ( operation === 1 ) { child [ key [ 0 ] ] [ key [ 1 ] ] [ key [ 2 ] ] [ key [ 3 ] ] += value ; }
1208+ else if ( operation === 2 ) { child [ key [ 0 ] ] [ key [ 1 ] ] [ key [ 2 ] ] [ key [ 3 ] ] -= value ; }
1209+ else if ( operation === 3 ) { child [ key [ 0 ] ] [ key [ 1 ] ] [ key [ 2 ] ] [ key [ 3 ] ] *= value ; }
1210+ else if ( operation === 4 ) { child [ key [ 0 ] ] [ key [ 1 ] ] [ key [ 2 ] ] [ key [ 3 ] ] /= value ; }
12111211 }
12121212
12131213 return true ;
@@ -1498,40 +1498,37 @@ Phaser.Group.prototype.callbackFromArray = function (child, callback, length) {
14981498
14991499 // Kinda looks like a Christmas tree
15001500
1501- if ( length == 1 )
1501+ if ( length === 1 )
15021502 {
15031503 if ( child [ callback [ 0 ] ] )
15041504 {
15051505 return child [ callback [ 0 ] ] ;
15061506 }
15071507 }
1508- else if ( length == 2 )
1508+ else if ( length === 2 )
15091509 {
15101510 if ( child [ callback [ 0 ] ] [ callback [ 1 ] ] )
15111511 {
15121512 return child [ callback [ 0 ] ] [ callback [ 1 ] ] ;
15131513 }
15141514 }
1515- else if ( length == 3 )
1515+ else if ( length === 3 )
15161516 {
15171517 if ( child [ callback [ 0 ] ] [ callback [ 1 ] ] [ callback [ 2 ] ] )
15181518 {
15191519 return child [ callback [ 0 ] ] [ callback [ 1 ] ] [ callback [ 2 ] ] ;
15201520 }
15211521 }
1522- else if ( length == 4 )
1522+ else if ( length === 4 )
15231523 {
15241524 if ( child [ callback [ 0 ] ] [ callback [ 1 ] ] [ callback [ 2 ] ] [ callback [ 3 ] ] )
15251525 {
15261526 return child [ callback [ 0 ] ] [ callback [ 1 ] ] [ callback [ 2 ] ] [ callback [ 3 ] ] ;
15271527 }
15281528 }
1529- else
1529+ else if ( child [ callback ] )
15301530 {
1531- if ( child [ callback ] )
1532- {
1533- return child [ callback ] ;
1534- }
1531+ return child [ callback ] ;
15351532 }
15361533
15371534 return false ;
0 commit comments