When I execute the below Coffeescript code:
@total = (a, b) -> a + b
The resulting compiled Javascript is:
(function() {
this.total = function(a, b) {
return a + b;
};
}).call(this);
Is there a method in Coffeescript to substitute this
with a different object, such as exampleObject
or something else in .call(this)
?