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
+9 -9
View File
@@ -36,7 +36,7 @@ class MenuApp {
// top ui
let screenTopUI = new ScreenTopUI();
screenTopUI.makeBackButton( () => {
screenTopUI.makeBackButton( function() {
sessionStorageManager.clear();
location.href = '../../web/client/login.html';
});
@@ -105,12 +105,12 @@ class MenuApp {
posX, posY, GameAppButton.TYPE_MOUSE_APP,
RoundRectButton.NONE_ICON, // "icon_fullscreen",
app.KoreanName,
() => {
(function() {
sessionStorageManager.playingAppID = app.AppID;
sessionStorageManager.playingAppName = app.AppName;
sessionStorageManager.playingAppKoreanName = app.KoreanName;
location.href = '../../web/client/start.html';
}
})
);
if(!self.hasApp(app.AppID, activeAppList))
@@ -134,9 +134,9 @@ class MenuApp {
let typingPracticeTabButton = new TypingTabButton(
TypingTabButton.PRACTICE_BUTTON_POS_X, TypingTabButton.BUTTON_POS_Y,
"", "타자 연습",
() => {
(function() {
location.href = '../../web/client/menu_typing_practice.html';
}
})
);
if(typingPracticeAppCount === 0)
typingPracticeTabButton.inputEnabled = false;
@@ -144,9 +144,9 @@ class MenuApp {
let typingTestTabButton = new TypingTabButton(
TypingTabButton.TEST_BUTTON_POS_X, TypingTabButton.BUTTON_POS_Y,
"", "타자 시험",
() => {
(function() {
location.href = '../../web/client/menu_typing_test.html';
}
})
);
if(typingTestAppCount === 0)
typingTestTabButton.inputEnabled = false;
@@ -170,12 +170,12 @@ class MenuApp {
RoundRectButton.NONE_ICON, // "icon_fullscreen",
// (isKoreanTypingApp ? "(한글)" : "(영문)") + "\n" + app.KoreanName,
app.KoreanName,
() => {
(function() {
sessionStorageManager.playingAppID = app.AppID;
sessionStorageManager.playingAppName = app.AppName;
sessionStorageManager.playingAppKoreanName = app.KoreanName;
location.href = '../../web/client/start.html';
}
})
);
if(!self.hasApp(app.AppID, activeAppList))
+9 -9
View File
@@ -45,7 +45,7 @@ class MenuTypingPractice {
// top ui
let screenTopUI = new ScreenTopUI();
screenTopUI.makeBackButton( () => {
screenTopUI.makeBackButton( function() {
location.href = '../../web/client/menu_app.html';
});
screenTopUI.makeFullScreenButton();
@@ -55,18 +55,18 @@ class MenuTypingPractice {
let typingPracticeTabButton = new TypingTabButton(
TypingTabButton.PRACTICE_BUTTON_POS_X, TypingTabButton.BUTTON_POS_Y,
"", "타자 연습",
() => {
(function() {
location.href = '../../web/client/menu_typing_practice.html';
}
})
);
typingPracticeTabButton.inputEnabled = false;
let typingTestTabButton = new TypingTabButton(
TypingTabButton.TEST_BUTTON_POS_X, TypingTabButton.BUTTON_POS_Y,
"", "타자 시험",
() => {
(function() {
location.href = '../../web/client/menu_typing_test.html';
}
})
);
// typingTestTabButton.inputEnabled = false;
@@ -143,12 +143,12 @@ class MenuTypingPractice {
posX, posY,
self.getIconImage(replyJSON.KoreanHighScoreList, activeApp.AppID),
activeApp.KoreanName,
() => {
(function() {
sessionStorageManager.playingAppID = activeApp.AppID;
sessionStorageManager.playingAppName = activeApp.AppName;
sessionStorageManager.playingAppKoreanName = activeApp.KoreanName;
location.href = '../../web/client/start.html';
}
})
);
if(!self.hasApp(activeApp.AppID, replyJSON.KoreanActiveAppList))
@@ -168,12 +168,12 @@ class MenuTypingPractice {
posX, posY,
self.getIconImage(activeApp.AppID),
activeApp.KoreanName,
() => {
(function() {
sessionStorageManager.playingAppID = activeApp.AppID;
sessionStorageManager.playingAppName = activeApp.AppName;
sessionStorageManager.playingAppKoreanName = activeApp.KoreanName;
location.href = '../../web/client/start.html';
}
})
);
if(!self.hasApp(activeApp.AppID, replyJSON.EnglishActiveAppList))
+9 -9
View File
@@ -45,7 +45,7 @@ class MenuTypingTest {
// top ui
let screenTopUI = new ScreenTopUI();
screenTopUI.makeBackButton( () => {
screenTopUI.makeBackButton( function() {
location.href = '../../web/client/menu_app.html';
});
screenTopUI.makeFullScreenButton();
@@ -55,18 +55,18 @@ class MenuTypingTest {
let typingPracticeTabButton = new TypingTabButton(
TypingTabButton.PRACTICE_BUTTON_POS_X, TypingTabButton.BUTTON_POS_Y,
"", "타자 연습",
() => {
(function() {
location.href = '../../web/client/menu_typing_practice.html';
}
})
);
// typingPracticeTabButton.inputEnabled = false;
let typingTestTabButton = new TypingTabButton(
TypingTabButton.TEST_BUTTON_POS_X, TypingTabButton.BUTTON_POS_Y,
"", "타자 시험",
() => {
(function() {
location.href = '../../web/client/menu_typing_test.html';
}
})
);
typingTestTabButton.inputEnabled = false;
@@ -143,12 +143,12 @@ class MenuTypingTest {
posX, posY,
self.getIconImage(replyJSON.KoreanHighScoreList, activeApp.AppID),
activeApp.KoreanName,
() => {
(function() {
sessionStorageManager.playingAppID = activeApp.AppID;
sessionStorageManager.playingAppName = activeApp.AppName;
sessionStorageManager.playingAppKoreanName = activeApp.KoreanName;
location.href = '../../web/client/start.html';
}
})
);
if(!self.hasApp(activeApp.AppID, replyJSON.KoreanActiveAppList))
@@ -168,12 +168,12 @@ class MenuTypingTest {
posX, posY,
self.getIconImage(replyJSON.KoreanHighScoreList, activeApp.AppID),
activeApp.KoreanName,
() => {
(function() {
sessionStorageManager.playingAppID = activeApp.AppID;
sessionStorageManager.playingAppName = activeApp.AppName;
sessionStorageManager.playingAppKoreanName = activeApp.KoreanName;
location.href = '../../web/client/start.html';
}
})
);
if(!self.hasApp(activeApp.AppID, replyJSON.EnglishActiveAppList))