fix 'this' scope error
This commit is contained in:
parent
5bb1c95ec5
commit
7d89bc7a7f
@ -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)
|
||||
|
@ -588,7 +588,7 @@ class Wallet {
|
||||
Query(this.db)
|
||||
.iter("coins")
|
||||
.reduce(countNonEmpty, 0)
|
||||
.then(doBadge);
|
||||
.then(doBadge.bind(this));
|
||||
}
|
||||
|
||||
storeCoin(coin: Db.Coin) {
|
||||
|
Loading…
Reference in New Issue
Block a user