Fix: ES5 bugs

This commit is contained in:
2018-09-14 22:37:44 +09:00
parent df317991c5
commit d52279c70d
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ Chart.prototype.drawRecordGraph = function(index, date, bestRecord, min, max) {
this.drawText(
posX, posY - Chart.CHART_HEIGHT - Chart.CHART_RECORD_OFFSET_Y,
StringUtil.getRecordTextWithoutUnit(bestRecord) + StringUtil.getScoreUnit(sessionStorageManager.playingAppID),
StringUtil.getRecordTextWithoutUnit(bestRecord) + StringUtil.getScoreUnit(sessionStorageManager.playingAppID)
);
// chart
+5 -1
View File
@@ -72,7 +72,11 @@ HistoryRecordManager.prototype.upperValueForGraph = function() {
HistoryRecordManager.prototype.getBestRecordArray = function() {
var numberArray = [];
for(var data of this.historyRecords) {
// for(var data of this.historyRecords) {
// numberArray.push(data.bestRecord);
// }
for(var i = 0; i < this.historyRecords.count; i++) {
var data = this.historyRecords[i];
numberArray.push(data.bestRecord);
}
return numberArray;