Last active
December 28, 2015 01:09
-
-
Save svasva/7418372 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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