jashkenas/coffee-script — Issue #1928: special case needed for class definition
Author: weepy
Created: 2011-12-12 10:36:21+00:00
State: open

Slightly unexpected behaviour

```
class Loop extends require "../model"
method: ->
```
compiles to

```
__extends(Loop, require("../model", {
method: function() {}
}));

function Loop() {
Loop.__super__.constructor.apply(this, arguments);
}
```

I understand why - whether it should be fixed is another question.