aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2017-06-17 07:39:52 +0800
committerfrankiebee <frankie.diamond@gmail.com>2017-06-17 07:39:52 +0800
commit3e359d6a6a5561247b6bd0908bfddb740241b681 (patch)
tree2f6a055cfdb9fff3b980812c4a3c6a167041d873
parentf76a555c09ea243865a6e40f140b70da78c23378 (diff)
parentfc3f83ac7480af43e0f91f36a6c64f61c2981f3c (diff)
downloadtangerine-wallet-browser-3e359d6a6a5561247b6bd0908bfddb740241b681.tar
tangerine-wallet-browser-3e359d6a6a5561247b6bd0908bfddb740241b681.tar.gz
tangerine-wallet-browser-3e359d6a6a5561247b6bd0908bfddb740241b681.tar.bz2
tangerine-wallet-browser-3e359d6a6a5561247b6bd0908bfddb740241b681.tar.lz
tangerine-wallet-browser-3e359d6a6a5561247b6bd0908bfddb740241b681.tar.xz
tangerine-wallet-browser-3e359d6a6a5561247b6bd0908bfddb740241b681.tar.zst
tangerine-wallet-browser-3e359d6a6a5561247b6bd0908bfddb740241b681.zip
Merge branch 'master' into i1567-FixInaccurateError
-rw-r--r--ISSUE_TEMPLATE15
-rw-r--r--app/scripts/metamask-controller.js6
2 files changed, 20 insertions, 1 deletions
diff --git a/ISSUE_TEMPLATE b/ISSUE_TEMPLATE
new file mode 100644
index 000000000..d0ff3c08e
--- /dev/null
+++ b/ISSUE_TEMPLATE
@@ -0,0 +1,15 @@
+<!--
+FAQ:
+ BEFORE SUBMITTING, please make sure your question hasn't been answered in our FAQ: https://github.com/MetaMask/faq
+ Common questions such as "Where is my ether?" or "Where did my tokens go?" are answered in the FAQ.
+
+Bug Reports:
+
+ Briefly describe the issue you've encountered
+ * Expected Behavior
+ * Actual Behavior
+ * Browser Used
+ * Operating System Used
+
+ Screenshots are very helpful and will expedite your issue being resolved!
+-->
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index 727c19fb7..de9a15924 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -23,6 +23,7 @@ const autoFaucet = require('./lib/auto-faucet')
const nodeify = require('./lib/nodeify')
const accountImporter = require('./account-import-strategies')
const getBuyEthUrl = require('./lib/buy-eth-url')
+const debounce = require('debounce')
const version = require('../manifest.json').version
@@ -30,6 +31,9 @@ module.exports = class MetamaskController extends EventEmitter {
constructor (opts) {
super()
+
+ this.sendUpdate = debounce(this.privateSendUpdate.bind(this), 200)
+
this.opts = opts
const initState = opts.initState || {}
@@ -355,7 +359,7 @@ module.exports = class MetamaskController extends EventEmitter {
)
}
- sendUpdate () {
+ privateSendUpdate () {
this.emit('update', this.getState())
}