Created
September 7, 2013 04:01
-
-
Save tosik/6472723 to your computer and use it in GitHub Desktop.
こんな風に Context#commandMap で WHEN the event happened THEN execute this command が実現できるようにした
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
| _module_ 'App.Main', -> | |
| class @MainContext extends Base.Context | |
| startup: -> | |
| @commandMap.when(@startupDone).then(App.Main.SayHelloCommand) | |
| shutdown: -> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment