Fix: menu typing ES5 bug
This commit is contained in:
@@ -102,7 +102,7 @@ var MenuTypingPractice = {
|
||||
},
|
||||
|
||||
getBestRecord: function(jsonList, appID) {
|
||||
var count = Object.keys(jsonList).length;
|
||||
var count = jsonList.length; // Object.keys(jsonList).length;
|
||||
|
||||
for(var i = 0; i < count; i++) {
|
||||
if(jsonList[i].AppID === appID)
|
||||
@@ -127,8 +127,8 @@ var MenuTypingPractice = {
|
||||
|
||||
var buttonWidthGap = TypingAppButton.BUTTON_WIDTH + MenuTypingPractice.BUTTON_GAP;
|
||||
|
||||
var koreanTypingPracticeAppCount = Object.keys(replyJSON.KoreanAppList).length;
|
||||
var englishTypingPracticeAppCount = Object.keys(replyJSON.EnglishAppList).length;
|
||||
var koreanTypingPracticeAppCount = replyJSON.KoreanAppList.length; // Object.keys(replyJSON.KoreanAppList).length;
|
||||
var englishTypingPracticeAppCount = replyJSON.EnglishAppList.length; // Object.keys(replyJSON.EnglishAppList).length;
|
||||
|
||||
for(var i = 0; i < koreanTypingPracticeAppCount; i++) {
|
||||
var activeApp = replyJSON.KoreanAppList[i];
|
||||
@@ -165,7 +165,7 @@ var MenuTypingPractice = {
|
||||
var typingPracticeButton = new TypingAppButton(
|
||||
TypingAppButton.TYPE_PRACTICE_ENGLISH,
|
||||
posX, posY,
|
||||
this.getIconImage(activeApp.AppID),
|
||||
this.getIconImage(replyJSON.EnglishHighScoreList, activeApp.AppID),
|
||||
activeApp.KoreanName,
|
||||
{
|
||||
AppID: activeApp.AppID,
|
||||
|
||||
Reference in New Issue
Block a user