1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Merge pull request #3101 from MetaMask/eventemitterwarning

Bump up EventEmitter listener warning threshold count to 20
This commit is contained in:
Thomas Huang 2018-01-29 09:50:59 -08:00 committed by GitHub
commit 9623270299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,8 @@
## Current Master ## Current Master
- Bump limit for EventEmitter listeners before warning.
## 3.13.7 2018-1-22 ## 3.13.7 2018-1-22
- Add ability to bypass gas estimation loading indicator. - Add ability to bypass gas estimation loading indicator.

View File

@ -43,6 +43,8 @@ module.exports = class MetamaskController extends EventEmitter {
constructor (opts) { constructor (opts) {
super() super()
this.defaultMaxListeners = 20
this.sendUpdate = debounce(this.privateSendUpdate.bind(this), 200) this.sendUpdate = debounce(this.privateSendUpdate.bind(this), 200)
this.opts = opts this.opts = opts