3 ms·
> I use Crockford's object.beget rather than normal JS constructors, and that works quite fine. Crockford's beget patches on Object which I think is a terrible
by the_mitsuhiko 17y ago
> I use Crockford's object.beget rather than normal JS constructors, and that works quite fine.
Crockford's beget patches on Object which I think is a terrible idea. The main reason why people create class libraries on top of JavaScript is the constructor problem (that setting up the "inheritance chain" triggers the constructor even though we only want the prototype).