Skip to content

Instantly share code, notes, and snippets.

@awsp
Created May 14, 2014 19:54
Show Gist options
  • Save awsp/30c0bd33318e06328433 to your computer and use it in GitHub Desktop.
Save awsp/30c0bd33318e06328433 to your computer and use it in GitHub Desktop.
MyApp.statechart = SC.Statechart.create({
trace: YES,
rootState: SC.State.design({
initialSubstate: 'CHECKAUTH',
CHECKAUTH: SC.State.plugin('MyApp.CHECK_AUTH'),
HASAUTH: SC.State.plugin('MyApp.HAS_AUTH'),
HASNOAUTH: SC.State.plugin('MyApp.HAS_NO_AUTH')
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment