diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-01-06 16:31:07 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-01-06 16:31:07 +0100 |
commit | 7d89bc7a7fca132cea59d0dff75a90b94e2d47f4 (patch) | |
tree | dd412a6933e583ea102d3f5efbcc3a6258426cd7 /extension | |
parent | 5bb1c95ec531c4cf7848466e4ff5c3408f2dca7f (diff) | |
download | wallet-core-7d89bc7a7fca132cea59d0dff75a90b94e2d47f4.tar.xz |
fix 'this' scope error
Diffstat (limited to 'extension')
-rw-r--r-- | extension/background/wallet.js | 2 | ||||
-rw-r--r-- | extension/background/wallet.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/extension/background/wallet.js b/extension/background/wallet.js index cc2154a8a..047eb9970 100644 --- 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 index 87e41e854..8b6094d74 100644 --- 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) { |