Skip to content

Instantly share code, notes, and snippets.

@tosik
Created September 7, 2013 04:01
Show Gist options
  • Select an option

  • Save tosik/6472723 to your computer and use it in GitHub Desktop.

Select an option

Save tosik/6472723 to your computer and use it in GitHub Desktop.
こんな風に Context#commandMap で WHEN the event happened THEN execute this command が実現できるようにした
_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