Skip to content

Instantly share code, notes, and snippets.

@tim-evans
Created February 29, 2012 17:50
Show Gist options
  • Select an option

  • Save tim-evans/1942893 to your computer and use it in GitHub Desktop.

Select an option

Save tim-evans/1942893 to your computer and use it in GitHub Desktop.
starting state
TodosThree.STARTING = SC.State.extend({
enterState: function () {
if (SC.instanceOf(TodosTwo.store.dataSource, SC.FixturesDataSource)) {
this.gotoState('LOADING_DATA');
} else {
this.gotoState('LOGGING_IN');
}
},
exitState: function () {
// Nothing to worry about here
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment