Fix: remove useless self variable
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user