summaryrefslogtreecommitdiffstats
path: root/webapp/stores/channel_store.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/stores/channel_store.jsx')
-rw-r--r--webapp/stores/channel_store.jsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/webapp/stores/channel_store.jsx b/webapp/stores/channel_store.jsx
index 0264ada4a..c93edf7f4 100644
--- a/webapp/stores/channel_store.jsx
+++ b/webapp/stores/channel_store.jsx
@@ -17,9 +17,11 @@ const LAST_VIEVED_EVENT = 'last_viewed';
class ChannelStoreClass extends EventEmitter {
constructor(props) {
super(props);
-
this.setMaxListeners(600);
+ this.clear();
+ }
+ clear() {
this.currentId = null;
this.postMode = this.POST_MODE_CHANNEL;
this.channels = [];