I recently started using coffeescript and was curious what is the \"right\" way to expose an object that I create with Coffeescript to other javascript pages. Because of co
Yep that's correct. Alternatively you can use define @myApi = { foo: -> } because this is window in the root context of the file.
@myApi = { foo: -> }
this
window