Created
June 4, 2012 22:03
-
-
Save ccapndave/2871091 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
| package myapp; | |
| import ember.State; | |
| import ember.StateManager; | |
| import ember.View; | |
| @:ember @:native("MyApp.AppStateManager") | |
| class AppStateManager extends StateManager { | |
| override public function init() { | |
| states = { }; | |
| states.startupState = new StartupState(); | |
| enableLogging = true; | |
| initialState = 'startupState'; | |
| super.init(); | |
| } | |
| } | |
| import ember.State; | |
| @:ember | |
| class StartupState extends State { | |
| override public function enter():Void { | |
| trace("entering"); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment