commit 7d89bc7a7fca132cea59d0dff75a90b94e2d47f4 parent 5bb1c95ec531c4cf7848466e4ff5c3408f2dca7f Author: Florian Dold <florian.dold@gmail.com> Date: Wed, 6 Jan 2016 16:31:07 +0100 fix 'this' scope error Diffstat:
| M | extension/background/wallet.js | | | 2 | +- |
| M | extension/background/wallet.ts | | | 2 | +- |
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/extension/background/wallet.js b/extension/background/wallet.js @@ -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) diff --git a/extension/background/wallet.ts b/extension/background/wallet.ts @@ -588,7 +588,7 @@ class Wallet { Query(this.db) .iter("coins") .reduce(countNonEmpty, 0) - .then(doBadge); + .then(doBadge.bind(this)); } storeCoin(coin: Db.Coin) {