Skip to content

Instantly share code, notes, and snippets.

@piotrze
Created November 21, 2012 05:05
Show Gist options
  • Save piotrze/4123129 to your computer and use it in GitHub Desktop.
Save piotrze/4123129 to your computer and use it in GitHub Desktop.
state and events for a graph
initial: 'firstLevel'
events: [
{name: 'fillFrom', from: 'firstLevel', to: 'fromFilled'},
{name: 'fillFrom', from: 'toFilled', to: 'fromToFilled'},
{name: 'fillTo', from: 'fromFilled', to: 'fromToFilled'},
{name: 'cleanFrom', from: 'fromFilled', to: 'firstLevel'},
{name: 'cleanFrom', from: 'fromToFilled', to: 'toFilled'},
{name: 'cleanTo', from: 'toFilled', to: 'firstLevel'}
{name: 'cleanTo', from: 'fromToFilled', to: 'fromFilled'}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment