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(); loading.complete();
return; return;
} }
let self = this; setTimeout(() => {
setTimeout(function() { this.history = this.wallet.completeHistory.slice(0, this.HISTORY_PAGE_COUNTER * this.HISTORY_SHOW_LIMIT);
self.history = self.wallet.completeHistory.slice(0, self.HISTORY_PAGE_COUNTER * self.HISTORY_SHOW_LIMIT); this.HISTORY_PAGE_COUNTER++;
self.HISTORY_PAGE_COUNTER++;
loading.complete(); loading.complete();
}, 300); }, 300);
} }