remove unnecessary variable self

This commit is contained in:
JDonadio 2017-11-15 12:29:44 -03:00
parent e28124652b
commit 3861e38818
No known key found for this signature in database
GPG Key ID: EC1F4E04B2BFA730
1 changed files with 3 additions and 4 deletions

View File

@ -55,10 +55,9 @@ export class WalletDetailsPage {
loading.complete();
return;
}
let self = this;
setTimeout(function() {
self.history = self.wallet.completeHistory.slice(0, self.HISTORY_PAGE_COUNTER * self.HISTORY_SHOW_LIMIT);
self.HISTORY_PAGE_COUNTER++;
setTimeout(() => {
this.history = this.wallet.completeHistory.slice(0, this.HISTORY_PAGE_COUNTER * this.HISTORY_SHOW_LIMIT);
this.HISTORY_PAGE_COUNTER++;
loading.complete();
}, 300);
}