I am playing around with CoffeeScript and the 'class' keyword, ended up with the following:
var Foo, foobar;
Foo = (function() {
function Foo() {}
Foo.bar = 7;
return Foo;
})();
foobar = new Foo;
alert(foobar.bar);
after typing in:
class Foo
@bar = 7
foobar = new Foo
alert foobar.bar
I kind of expected bar to retain that value but the alert pops up as undefined