Created
February 13, 2014 00:09
-
-
Save mattcolman/8967203 to your computer and use it in GitHub Desktop.
fat or thin arrow
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
# 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