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 /app/scripts | |
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
Diffstat (limited to 'app/scripts')
-rw-r--r-- | app/scripts/lib/listener-manager.js | 25 |
1 files changed, 0 insertions, 25 deletions
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] = [] - } - -} |