Skip to content

Instantly share code, notes, and snippets.

@mattcolman
Created February 13, 2014 00:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattcolman/8967203 to your computer and use it in GitHub Desktop.
Save mattcolman/8967203 to your computer and use it in GitHub Desktop.
fat or thin arrow
# Fat arrow implementation
box.on 'go', @handleGo
handleGo: (e) =>
e.target.removeListener 'go', @handleGo
@game.nextState()
# Thin arrow implementation
scope = @
box.on 'go', ->
@removeListener 'go', @
scope.game.nextState()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment