Fix: remove useless self variable

This commit is contained in:
2018-05-17 15:56:54 +09:00
parent 60a00056bb
commit 976e5563b7
4 changed files with 29 additions and 36 deletions
+2 -3
View File
@@ -13,14 +13,13 @@ class HistoryBoard {
this.textMyRanking = game.add.text(posX, posY + 100, '', arrayTabStyle)
.setShadow(3, 3, 'rgba(0, 0, 0, 0.5)', 2);
let self = this;
this.dbConnectManager.requestTempPlayerHistory( historyRecordManager => {
this.dbConnectManager.requestPlayerHistory( historyRecordManager => {
for(let i = 0; i < historyRecordManager.count; i++) {
if(i > 6)
break;
let data = historyRecordManager.getAt(i);
self.printRecord(i, data.date, data.score);
this.printRecord(i, data.date, data.score);
}
});
}