fix 'this' scope error

This commit is contained in:
Florian Dold 2016-01-06 16:31:07 +01:00
parent 5bb1c95ec5
commit 7d89bc7a7f
2 changed files with 2 additions and 2 deletions

View File

@ -386,7 +386,7 @@ class Wallet {
Query(this.db)
.iter("coins")
.reduce(countNonEmpty, 0)
.then(doBadge);
.then(doBadge.bind(this));
}
storeCoin(coin) {
Query(this.db)

View File

@ -588,7 +588,7 @@ class Wallet {
Query(this.db)
.iter("coins")
.reduce(countNonEmpty, 0)
.then(doBadge);
.then(doBadge.bind(this));
}
storeCoin(coin: Db.Coin) {