aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-09-07 09:57:18 +0800
committerDan Finlay <dan@danfinlay.com>2016-09-07 09:59:47 +0800
commit2564c0c51c39e428540e38b80558e45ec44357a8 (patch)
treed20df5faf6c355247ea4a15173d061f2de6fd851 /app/scripts
parentbfea26d3e3d12de6ce9bbc01ad24a42d846021e5 (diff)
downloadtangerine-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.js25
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] = []
- }
-
-}