Created
January 9, 2012 23:56
-
-
Save ccapndave/1585771 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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