mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
Bump changelog
This commit is contained in:
parent
bfea26d3e3
commit
2564c0c51c
@ -4,6 +4,7 @@
|
||||
|
||||
- On fresh install, open a new tab with the MetaMask Introduction video.
|
||||
- Block negative values from transactions.
|
||||
- Fixed a memory leak.
|
||||
|
||||
## 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…
Reference in New Issue
Block a user