diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-09-07 09:57:18 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-09-07 09:59:47 +0800 |
commit | 2564c0c51c39e428540e38b80558e45ec44357a8 (patch) | |
tree | d20df5faf6c355247ea4a15173d061f2de6fd851 | |
parent | bfea26d3e3d12de6ce9bbc01ad24a42d846021e5 (diff) | |
download | tangerine-wallet-browser-2564c0c51c39e428540e38b80558e45ec44357a8.tar tangerine-wallet-browser-2564c0c51c39e428540e38b80558e45ec44357a8.tar.gz tangerine-wallet-browser-2564c0c51c39e428540e38b80558e45ec44357a8.tar.bz2 tangerine-wallet-browser-2564c0c51c39e428540e38b80558e45ec44357a8.tar.lz tangerine-wallet-browser-2564c0c51c39e428540e38b80558e45ec44357a8.tar.xz tangerine-wallet-browser-2564c0c51c39e428540e38b80558e45ec44357a8.tar.zst tangerine-wallet-browser-2564c0c51c39e428540e38b80558e45ec44357a8.zip |
Bump changelog
-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] = [] - } - -} |