Skip to content

Instantly share code, notes, and snippets.

@waseem
Created July 30, 2012 11:13
Show Gist options
  • Save waseem/3206248 to your computer and use it in GitHub Desktop.
Save waseem/3206248 to your computer and use it in GitHub Desktop.
var states = [
'showingAddRelative',
'showingForm',
'showingComplexRelationshipHelp',
'findingExistingRelatives',
'choosingNewOrExisting',
'addingRelative',
'gettingSuggestions',
'showingSuggestions',
'approvingSuggestions',
'requestingInvitationTemplate',
'showingInvitationTemplate',
'sendingInvitation',
'findingExistingRelatives',
'idle'
], lol = new Object();
for (state in states) {
lol[state] = Ember.State.create({});
}
App.AddRelativeManager = Ember.StateManager.create(lol);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment