-
-
Save chrislloyd/416725 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
# Make sure that Node is %script{src'd} before Sprite | |
window.Node: class Node | |
addToStage: -> | |
console.log "Add node to stage" |
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
class Sprite extends Node | |
constructor: (url) -> | |
@url: url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's also pretty good practice to have a task which concatenates your source files (beforee the coffee -c command is run) so you don't have to worry about scope too much.