When trying to instantiate MyClass()s I get the following error.
s = new MyClass();
> TypeError: 'undefined' is not a function (evaluating '_class.apply(this, arguments)')
The is the Class
class MyClass
constructor: (@value = 'defaultValue')
….
Any idea what is causing this error?
The constructor needs to be a function so you need to specify
->:Demo