I have the following code, that looks like the following:
var shared = {
create: function(){
//do stuff on create
}
}
enyo.kind(enyo.mixin({
name: "CustomInput",
//properties unique to input.
kind: enyo.Input
},shared));
enyo.kind(enyo.mixin({
name: "CustomTextArea",
//properties unique to input.
kind: enyo.TextArea
},shared));
enyo.kind(enyo.mixin({
name: "CustomSelect",
//properties unique to input.
kind: enyo.Select
},shared));
I'm being informed by my peers that this is an incorrect way of doing things, and could potentionally break something, or be too confusing because they've never seen mixins used in this way.
My question is, is there anything wrong with doing this, in this way?