Skip to content

Instantly share code, notes, and snippets.

@johanvalcoog
Forked from ccapndave/gist:1585771
Created January 10, 2012 04:41
Show Gist options
  • Save johanvalcoog/1587003 to your computer and use it in GitHub Desktop.
Save johanvalcoog/1587003 to your computer and use it in GitHub Desktop.
CliffDetector.stateManager = Ember.StateManager.create
rootElement: $("div[data-role=content]")
map: Ember.ViewState.create
view: CliffDetector.MapView.create()
enter: (stateManager) ->
@_super(stateManager)
console.log "hello"
# Set the starting state
CliffDetector.stateManager.goToState("map")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment