Fix: () => { } -> function() { }

This commit is contained in:
2018-09-13 15:13:14 +09:00
parent dad83205cd
commit e8c7304dba
22 changed files with 108 additions and 101 deletions
+2 -2
View File
@@ -29,13 +29,13 @@ class FullscreenButton extends RoundRectButton {
super(
setting,
RoundRectButton.NONE_ICON, RoundRectButton.NONE_BUTTON_TEXT,
() => {
(function() {
if(game.scale.isFullScreen) {
game.scale.stopFullScreen();
} else {
game.scale.startFullScreen();
}
}
})
);
let icon_fullscreen = game.add.sprite(0, 0, 'icon_fullscreen');
+3 -2
View File
@@ -4,12 +4,13 @@ class HeartGauge {
this.heartManager = heartManager;
this.hearts = [];
let self = this;
this.heartManager.addOnChangeCountListener(
() => { this.onChangeCountListener(); }
function() { self.onChangeCountListener(); }
);
this.heartManager.addOnChangeMaxCountListener(
() => { this.onChangeMaxCountListener(); }
function() { self.onChangeMaxCountListener(); }
);
let startPosX = GAME_SCREEN_SIZE.x - HeartGauge.GAP * 4;