Created
May 14, 2014 19:54
-
-
Save awsp/30c0bd33318e06328433 to your computer and use it in GitHub Desktop.
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
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