Skip to content

Instantly share code, notes, and snippets.

@alexrothenberg
Created April 12, 2012 19:52
Show Gist options
  • Save alexrothenberg/2370547 to your computer and use it in GitHub Desktop.
Save alexrothenberg/2370547 to your computer and use it in GitHub Desktop.
App.Alex = Ember.Object.Extend({
dotColor: function() {
switch (this.get('customer').get('state') {
when 1
'sprite big'
when 2
'sprite small'
}
}.property('customer.state')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment