Skip to content

Instantly share code, notes, and snippets.

View katzenbar's full-sized avatar
:shipit:
Ship it

Kat Fairbanks katzenbar

:shipit:
Ship it
  • Cincinnati, Ohio, US
View GitHub Profile
@katzenbar
katzenbar / components.broken-example.js
Created July 23, 2015 01:21
Computed Properties Quirk Demo
export default Ember.Component.extend({
selection: 'Cat',
isCatFavorite: Ember.computed.equal('selection', 'Cat'),
isDogFavorite: Ember.computed.equal('selection', 'Dog'),
isMonkeyFavorite: Ember.computed.equal('selection', 'Monkey'),
isBearFavorite: Ember.computed.equal('selection', 'Bear'),
catButtonClass: Ember.computed('isCatFavorite', {
get() {