I have a really simple coffescript class:
class Bar
foo: ->
console.log('bar')
Which when compiled using coffee -c bar.coffee is being compiled into
(function() {
class(Bar({
foo: function() {
return console.log('bar');
}
}));
}).call(this);
If it makes any difference I'm in Windows and the exact same coffeescript compiles correctly using SassAndCoffee. I have tried a number of different compilers (Node.exe + latest coffescript source, Coffee.exe, etc) but all are showing the same behaviour. Has anyone got any thoughts?
(class)compile to?