Bump changelog

feature/default_network_editable
Dan Finlay 8 years ago
parent bfea26d3e3
commit 2564c0c51c
  1. 1
      CHANGELOG.md
  2. 25
      app/scripts/lib/listener-manager.js

@ -4,6 +4,7 @@
- On fresh install, open a new tab with the MetaMask Introduction video. - On fresh install, open a new tab with the MetaMask Introduction video.
- Block negative values from transactions. - Block negative values from transactions.
- Fixed a memory leak.
## 2.10.2 2016-09-02 ## 2.10.2 2016-09-02

@ -1,25 +0,0 @@
module.exports = class ListenerManager {
constructor() {
this.cleaners = {}
}
setup (name) {
if (!(name in this.cleaners)) {
this.cleaners[name] = []
}
}
addCleanup (name, cleaner) {
this.setup(name)
}
cleanupOldListeners (name) {
this.setup(name)
this.cleaners[name].forEach((cleaner) => {
cleaner()
})
this.cleaners[name] = []
}
}
Loading…
Cancel
Save