aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Huang <tmashuang@users.noreply.github.com>2018-01-30 01:50:59 +0800
committerGitHub <noreply@github.com>2018-01-30 01:50:59 +0800
commit962327029938d9718e8324e48d6a57bea3b0aca7 (patch)
tree64cc9e3fa81c48b508f01b4635fb5fc9ec84a954
parent780b21039e95214801de4acad3e72155862cb7d2 (diff)
parent1b8613ed23a8994694e202d74cfd0ec538ad9daf (diff)
downloadtangerine-wallet-browser-962327029938d9718e8324e48d6a57bea3b0aca7.tar
tangerine-wallet-browser-962327029938d9718e8324e48d6a57bea3b0aca7.tar.gz
tangerine-wallet-browser-962327029938d9718e8324e48d6a57bea3b0aca7.tar.bz2
tangerine-wallet-browser-962327029938d9718e8324e48d6a57bea3b0aca7.tar.lz
tangerine-wallet-browser-962327029938d9718e8324e48d6a57bea3b0aca7.tar.xz
tangerine-wallet-browser-962327029938d9718e8324e48d6a57bea3b0aca7.tar.zst
tangerine-wallet-browser-962327029938d9718e8324e48d6a57bea3b0aca7.zip
Merge pull request #3101 from MetaMask/eventemitterwarning
Bump up EventEmitter listener warning threshold count to 20
-rw-r--r--CHANGELOG.md2
-rw-r--r--app/scripts/metamask-controller.js2
2 files changed, 4 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 905f1f98f..61b89580b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,8 @@
## Current Master
+- Bump limit for EventEmitter listeners before warning.
+
## 3.13.7 2018-1-22
- Add ability to bypass gas estimation loading indicator.
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index 000e17b9e..672ec7403 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -43,6 +43,8 @@ module.exports = class MetamaskController extends EventEmitter {
constructor (opts) {
super()
+ this.defaultMaxListeners = 20
+
this.sendUpdate = debounce(this.privateSendUpdate.bind(this), 200)
this.opts = opts