Skip to content

Instantly share code, notes, and snippets.

@jim
Created May 6, 2011 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jim/959269 to your computer and use it in GitHub Desktop.
Save jim/959269 to your computer and use it in GitHub Desktop.
SC.Statechart.create({
rootState: SC.State.design({
initialSubstate: 'ready',
ready: SC.State.design({
initialSubstate: 'simple',
simple: SC.State.design({}),
concurrent: SC.State.design({
substatesAreConcurrent: YES,
one: SC.State.design({
initialSubstate: 'a',
a: SC.State.design({}),
b: SC.State.design({ })
}),
two: SC.State.design({
initialSubstate: 'c',
c: SC.State.design({}),
d: SC.State.design({})
})
})
})
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment