Fix: ES5 bugs
This commit is contained in:
@@ -23,7 +23,7 @@ Chart.prototype.drawRecordGraph = function(index, date, bestRecord, min, max) {
|
|||||||
|
|
||||||
this.drawText(
|
this.drawText(
|
||||||
posX, posY - Chart.CHART_HEIGHT - Chart.CHART_RECORD_OFFSET_Y,
|
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
|
// chart
|
||||||
|
|||||||
@@ -72,7 +72,11 @@ HistoryRecordManager.prototype.upperValueForGraph = function() {
|
|||||||
|
|
||||||
HistoryRecordManager.prototype.getBestRecordArray = function() {
|
HistoryRecordManager.prototype.getBestRecordArray = function() {
|
||||||
var numberArray = [];
|
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);
|
numberArray.push(data.bestRecord);
|
||||||
}
|
}
|
||||||
return numberArray;
|
return numberArray;
|
||||||
|
|||||||
Reference in New Issue
Block a user