Y
Hacker News
new
|
ask
|
show
|
jobs
by
ryanf
5412 days ago
CoffeeScript wraps its output in an anonymous function, so to create a global var you have to explicitly assign it as "window.varname" or, at the top level, "this.varname".
1 comments
riffraff
5412 days ago
ah that's interesting thanks for the explanation
link