aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/background.js
diff options
context:
space:
mode:
authorFrances Pangilinan <frankie.diamond@gmail.com>2016-12-15 07:04:33 +0800
committerFrances Pangilinan <frankie.diamond@gmail.com>2016-12-15 07:04:33 +0800
commitda9349fe63de70d29a13b6c7d94eb40dc5fcb127 (patch)
tree204f87bc51d11c6d718841c1f7cb11c4b7781d3c /app/scripts/background.js
parent5a292cc39781824ecd57535972cfa7c985d7824d (diff)
downloadtangerine-wallet-browser-da9349fe63de70d29a13b6c7d94eb40dc5fcb127.tar
tangerine-wallet-browser-da9349fe63de70d29a13b6c7d94eb40dc5fcb127.tar.gz
tangerine-wallet-browser-da9349fe63de70d29a13b6c7d94eb40dc5fcb127.tar.bz2
tangerine-wallet-browser-da9349fe63de70d29a13b6c7d94eb40dc5fcb127.tar.lz
tangerine-wallet-browser-da9349fe63de70d29a13b6c7d94eb40dc5fcb127.tar.xz
tangerine-wallet-browser-da9349fe63de70d29a13b6c7d94eb40dc5fcb127.tar.zst
tangerine-wallet-browser-da9349fe63de70d29a13b6c7d94eb40dc5fcb127.zip
Clean up and comment functions
Diffstat (limited to 'app/scripts/background.js')
-rw-r--r--app/scripts/background.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/app/scripts/background.js b/app/scripts/background.js
index 854b679da..f476e89e4 100644
--- a/app/scripts/background.js
+++ b/app/scripts/background.js
@@ -115,18 +115,11 @@ function updateBadge () {
// txManger :: tx approvals and rejection cb's
txManager.on('signed', function (txId) {
- var approvalCb = this._unconfTxCbs[txId]
-
- approvalCb(null, true)
- // clean up
- delete this._unconfTxCbs[txId]
+ this.execOnTxDoneCb(txId, true)
})
txManager.on('rejected', function (txId) {
- var approvalCb = this._unconfTxCbs[txId]
- approvalCb(null, false)
- // clean up
- delete this._unconfTxCbs[txId]
+ this.execOnTxDoneCb(txId, false)
})
// data :: setters/getters