extensible constructors.
Install with component(1):
$ component install yields/extensible
functionView(){}functionFormView(){}functionTabView(){}functionComplexFormView(){}// => Make the view extensibleextensible(View);// => FormView extends ViewView.extend(FormView);// => ComplexFormView extends FormViewFormView.extend(ComplexFormView);Add recursive .extend(Other) method to Constructor.
extensible uses component/inherit to do the inheritance,
but it's different from inherit since it adds .extend() static
method to your constructor.
this means you can have a single extensible(View) and do View.extend(OtherView)
instead of installing component/inherit on each view component.
MIT