So in javascript I would dynamically call a function from a string like this:
window["function_name"](args);
However if I try this in coffeescript it does not work, is this something to do with the way coffee script does not have a function in the global namespace?
All of the functions are wrapped in a function like this:
(function() {
#code here
}).call(this);
So how do I call a function from a string in coffeescript?
@someFn = () ->...and in another file@['someFn'](). But if your talking about one in the current file, you'll have to make it an object method, either ofwindowas I did or some other object.