issa-tseng / janus

the two-faced application library-framework.
http://janusjs.org
37 stars 7 forks source link

extend SomeClass.build() fails in ES6 #150

Open issa-tseng opened 5 years ago

issa-tseng commented 5 years ago
TypeError: Cannot call a class constructor without |new|

where SomeClass is some ES6-generated Model.build classdef, for example.

this happens because ES6 constructors cannot be called without keyword new, but coffeescript 1.x does not know this.

hmmm.

issa-tseng commented 5 years ago

so far i have not found any solution that preserves both of:

this is a mess.