mixinProto Class
mix in proto props
Item Index
Methods
propsMulti
-
child -
arrayParents
Mix in PROTOTYPE properties from array of INSTANTIATED parent classes to a child class. Basically just a for loop around mitsubshi.propsSingle().
Parameters:
-
childClassclass that will be decorated
-
arrayParentsArrayarray of parent classes (can be static or dynamic) that will be giving their properties to the new static class
Returns:
decorated child static class
propsSingle
-
childClass -
parentClass -
staticProps
Mix in PROTOTYPE properties from one class to another class (accepts both dynamic and static classes). Will mix in static properties if a static class is passed in, otherwise mixes in prototype methods.
Parameters:
-
childClassClassthe child class (dynamic or static) to be decorated
-
parentClassClassthe parent class (dynamic or static) that has the properties to be mixed in to the child
-
staticPropsObjectextra properties to mix in
Returns:
the decorated child class
propsUninstantiatedMulti
-
child -
arrayParents
Mix in PROTOTYPE properties from array of UNinstantiated parent classes to a child class. Basically just a for loop around mitsubshi.propsSingle().
Parameters:
-
childClassclass that will be decorated
-
arrayParentsArrayarray of parent classes (can be static or dynamic) that will be giving their properties to the new static class
Returns:
decorated child static class
returnPrototypeIfDynamicClass
-
item
Check whether an class is static or dynamic (ie object literal vs constructor fn obj)
Parameters:
-
itemObjectthe class/js object to check
Returns:
if a contructor then return its prototpe else return the obj literal unmodified
