diff --git a/main/pub/talk/src/js/actions/MessageActions.coffee b/main/pub/talk/src/js/actions/MessageActions.coffee index d904fadcdb..da23ff5dad 100644 --- a/main/pub/talk/src/js/actions/MessageActions.coffee +++ b/main/pub/talk/src/js/actions/MessageActions.coffee @@ -1,7 +1,5 @@ MessageDispatcher = require '../dispatcher/Dispatcher.coffee' -# hm - module.exports = loadMessages: (grams,get) -> MessageDispatcher.handleServerAction diff --git a/main/pub/talk/src/js/components/StationsComponent.coffee b/main/pub/talk/src/js/components/StationsComponent.coffee index 1d1aea5866..7940a2aae5 100644 --- a/main/pub/talk/src/js/components/StationsComponent.coffee +++ b/main/pub/talk/src/js/components/StationsComponent.coffee @@ -13,9 +13,9 @@ module.exports = recl getInitialState: -> @stateFromStore() componentDidMount: -> - @$el = $(@getDOMNode()) - @$add = $('#stations .add') - @$input = @$el.find('input') + @$el = $ @getDOMNode() + @$add = $ '#stations .add' + @$input = @$el.find 'input' StationStore.addChangeListener @_onChangeStore componentWillUnmount: -> diff --git a/main/pub/talk/src/js/stores/StationStore.coffee b/main/pub/talk/src/js/stores/StationStore.coffee index c7b8940ca4..27a16970fa 100644 --- a/main/pub/talk/src/js/stores/StationStore.coffee +++ b/main/pub/talk/src/js/stores/StationStore.coffee @@ -111,7 +111,7 @@ StationStore.dispatchToken = StationDispatcher.register (payload) -> StationStore.setListening action.station StationStore.emitChange() break - when "config-load" + when "config-load" #[name:'loadConfig', args:['station', 'config']] StationStore.loadConfig action.station,action.config StationStore.emitChange() break @@ -119,7 +119,10 @@ StationStore.dispatchToken = StationDispatcher.register (payload) -> StationStore.loadStations action.stations StationStore.emitChange() break - when "stations-leave" + when "stations-leave" # stations-leave:[{name:'loadStations' args:['stations']} ['unsetStation' 'station']] + # ... + # for command in actionVtable[action.type] + # StationStore[command[0]].apply(command[1..].map(argname -> action[argname])) StationStore.loadStations action.stations StationStore.unsetStation action.station StationStore.emitChange()