Created
February 14, 2013 20:26
-
-
Save jonnii/4956088 to your computer and use it in GitHub Desktop.
avoid refreshing ember flicker ui.
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
App.WorkersIndexController = Ember.ArrayController.extend | |
refresh: -> | |
console.log 'refreshing workers' | |
@set 'refreshing', App.Worker.find() | |
update: (-> | |
refreshing = @get 'refreshing' | |
return unless refreshing.get('isLoaded') | |
Ember.run => | |
@set 'content', refreshing | |
).observes('refreshing.isLoaded') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment