Created
July 23, 2014 18:04
-
-
Save elliottkember/7ef93572ef71d4561091 to your computer and use it in GitHub Desktop.
Load in CoffeeScript files with Framer
This file contains 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
load = (scripts...) -> | |
for script in scripts | |
script = "#{script}.coffee" if script.indexOf '.' == -1 | |
eval CoffeeScript.compile(Utils.domLoadDataSync(script)) | |
load 'finderWindow', 'appStateMachine' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment