Skip to content

Instantly share code, notes, and snippets.

@rklancer
Created April 20, 2012 20:55
Show Gist options
  • Save rklancer/2431832 to your computer and use it in GitHub Desktop.
Save rklancer/2431832 to your computer and use it in GitHub Desktop.
Ember sanity check
# in my otherwise-working app:
GG.tasksController = Ember.ArrayController.create
content : []
currentTask: null
GG.Drake = Ember.Object.extend
# (...)
visibleGenotype: (->
visibleGenes = GG.tasksController.getPath 'currentTask.visibleGenes'
debugger
GG.genetics.filterGenotype @get('genotype'), visibleGenes
).property('GG.tasksController.currentTask', 'genotype').cacheable()
# debugger statement is reached when app starts up. However...
# later, in Web Inspector console:
GG.tasksController.set('currentTask', GG.Task.create({visibleGenes: ['Fl']}))
# debugger statement is not reached.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment