Created
April 20, 2012 20:55
-
-
Save rklancer/2431832 to your computer and use it in GitHub Desktop.
Ember sanity check
This file contains 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
# 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