Fix: () => { } -> function() { }
This commit is contained in:
@@ -15,7 +15,7 @@ class TypingPractice {
|
||||
|
||||
// top ui
|
||||
let screenTopUI = new ScreenTopUI();
|
||||
screenTopUI.makeBackButton( () => {
|
||||
screenTopUI.makeBackButton( function() {
|
||||
sessionStorageManager.resetPlayingAppData();
|
||||
location.href = '../../web/client/menu_typing_practice.html';
|
||||
});
|
||||
@@ -29,12 +29,12 @@ class TypingPractice {
|
||||
|
||||
this.typingScore = new TypingScore();
|
||||
|
||||
this.stageTimer = new StageTimer( TypingPractice.STAGE_TIMER_SEC, () => {
|
||||
this.stageTimer = new StageTimer( TypingPractice.STAGE_TIMER_SEC, (function() {
|
||||
self.isOnStage = false;
|
||||
|
||||
// self.goResult();
|
||||
self.gameOver();
|
||||
});
|
||||
}));
|
||||
|
||||
|
||||
// typing content
|
||||
@@ -88,12 +88,12 @@ class TypingPractice {
|
||||
else
|
||||
this.keyboard = new Keyboard(this.keyMapper, Keyboard.ENGLISH);
|
||||
|
||||
game.input.keyboard.processKeyPress = () => {
|
||||
game.input.keyboard.processKeyPress = (function() {
|
||||
if(self.isOnStage === false)
|
||||
return;
|
||||
|
||||
self.checkTypingContents(event);
|
||||
}
|
||||
});
|
||||
this.shiftKey = game.input.keyboard.addKey(Phaser.Keyboard.SHIFT);
|
||||
|
||||
// hands
|
||||
|
||||
@@ -13,7 +13,7 @@ class TypingTest {
|
||||
|
||||
// top ui
|
||||
let screenTopUI = new ScreenTopUI();
|
||||
screenTopUI.makeBackButton( () => {
|
||||
screenTopUI.makeBackButton( function() {
|
||||
sessionStorageManager.resetPlayingAppData();
|
||||
location.href = '../../web/client/menu_typing_test.html';
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user