From 83e4d3fb9cd2692a0363f48e70a50989b3e9a163 Mon Sep 17 00:00:00 2001 From: nickago Date: Mon, 6 Jul 2015 12:37:42 -0700 Subject: Changed socket event to a props based change --- web/react/stores/channel_store.jsx | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'web/react/stores') diff --git a/web/react/stores/channel_store.jsx b/web/react/stores/channel_store.jsx index 4e52cccd3..3f259bc7d 100644 --- a/web/react/stores/channel_store.jsx +++ b/web/react/stores/channel_store.jsx @@ -12,7 +12,6 @@ var ActionTypes = Constants.ActionTypes; var CHANGE_EVENT = 'change'; var MORE_CHANGE_EVENT = 'change'; var EXTRA_INFO_EVENT = 'extra_info'; -var DIFF_CHANNEL_EVENT = 'change_channel'; var ChannelStore = assign({}, EventEmitter.prototype, { emitChange: function() { @@ -24,15 +23,6 @@ var ChannelStore = assign({}, EventEmitter.prototype, { removeChangeListener: function(callback) { this.removeListener(CHANGE_EVENT, callback); }, - emitDiffChannelChange: function() { - this.emit(DIFF_CHANNEL_EVENT); - }, - addDiffChannelChangeListener: function(callback) { - this.on(DIFF_CHANNEL_EVENT,callback); - }, - removeDiffChannelChangeListener: function(callback) { - this.removeListener(DIFF_CHANNEL_EVENT,callback); - }, emitMoreChange: function() { this.emit(MORE_CHANGE_EVENT); }, @@ -235,7 +225,6 @@ ChannelStore.dispatchToken = AppDispatcher.register(function(payload) { ChannelStore.setCurrentId(action.id); ChannelStore.setLastVisitedName(action.name); ChannelStore.resetCounts(action.id); - ChannelStore.emitDiffChannelChange(); ChannelStore.emitChange(); break; -- cgit v1.2.3-1-g7c22