Re:Batman.js vs Knockout.js
by nixme on Tuesday August 30, 2011 @02:18AM
(#2940345)
By default, CS compiles with a closure per file to prevent local variables from leaking to the global scope. So the purpose is to ensure the class is exported. If you put the following in a user.coffee file:
it would compile to:
while
would compile to:
ensuring that User is available from any file (since the top-level this === window in the browser).
[ Parent
| on HN ]
There are no comments on this comment yet.