Skip to content

Instantly share code, notes, and snippets.

@hvgotcodes
Created May 3, 2012 16:35
Show Gist options
  • Save hvgotcodes/2587050 to your computer and use it in GitHub Desktop.
Save hvgotcodes/2587050 to your computer and use it in GitHub Desktop.
hsc.states.init = ->
hsc.statechart = Stativus.createStatechart();
hsc.statechart.addState '#root',
enterState: ->
Ti.API.info 'enter state!!!'
hsc.ui.init();
newRound: ->
Ti.API.info 'new round!!'
this.gotoState '#newRound'
states: [
{
name: '#newRound'
enterState: ->
Ti.API.info('new round...');
hsc.ui.openVerticalScorecard()
}
]
hsc.statechart.initStates('#root')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment