From 2564c0c51c39e428540e38b80558e45ec44357a8 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Tue, 6 Sep 2016 18:57:18 -0700 Subject: Bump changelog --- app/scripts/lib/listener-manager.js | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 app/scripts/lib/listener-manager.js (limited to 'app/scripts') 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] = [] - } - -} -- cgit v1.2.3