mixinInstance Class
mix in instance properties from classes
Item Index
Methods
hasOwnPropsMixin
-
child -
parent
copy hasOwn properties from one class to another
Parameters:
-
childObjectthe object that you want to gain the extra properties
-
parentObjectthe object that has the properties to give
Returns:
the decorated child
instanceMulti
-
child -
arrayParents
Mix in INSTANCE properties from array of parent classes to a child class. Basically just a for loop around mitsubshi.instanceSingle().
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
instanceSingle
-
childClass -
parentClass
Mix in INSTANCE properties from one class to another class (accepts both dynamic and static classes). Will mix in prototype properties if a dynamic class is passed in.
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
Returns:
the decorated child class
validObjectLiteral
-
item
Check class is static (ie object literal vs constructor fn obj)
Parameters:
-
itemObjectthe class/js object to check
Returns:
boolean
