Skip to content

Instantly share code, notes, and snippets.

@svasva
Last active December 28, 2015 01:09
Show Gist options
  • Save svasva/7418372 to your computer and use it in GitHub Desktop.
Save svasva/7418372 to your computer and use it in GitHub Desktop.
Cx.TestRoute = Ember.Route.extend
setupController: (c, m) ->
@chart_itemsChannel = pusher.subscribe("chartItems-#{pair.get 'id'}")
@chart_itemsChannel.bind 'chartItem#update', (chart_item) =>
console.log chart_item
store = @get('store')
store.push 'chartItem', chart_item
@set('store', store)
...
Cx.ChartBoxComponent = Ember.Component.extend
updater: (->
console.log 'updater'
).observes('[email protected]')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment