sealcode / sealious

An extensible, declarative node framework
25 stars 2 forks source link

Use Javascript's prototype chain to implement field-type inheritance #222

Closed kuba-orlik closed 8 years ago

kuba-orlik commented 9 years ago

Currently field-type inheritance is achieved by manually calling methods either from the field-type-declaration or from the field-type prototype.

All the field-type methods except for is_proper_value should use native JS object prototype chain for easy and efficient inheritance.

arkadiusz-wieczorek commented 8 years ago

https://nodejs.org/api/util.html#util_util_inherits_constructor_superconstructor

kuba-orlik commented 8 years ago

It seems useful, but I think we should use native javascript prototype chain :)

kuba-orlik commented 8 years ago

Moved to ice box