diff options
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | app/scripts/lib/listener-manager.js | 25 |
2 files changed, 1 insertions, 25 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9021fdf01..bea356ab6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/app/scripts/lib/listener-manager.js b/app/scripts/lib/listener-manager.js deleted file mode 100644 index 9e3c71afc..000000000 --- a/app/scripts/lib/listener-manager.js +++ /dev/null @@ -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] = [] - } - -} |