ish.oop

Collection of Object-Oriented Programming-based functionality.

Source:

Methods

ish.oop.partial(vTarget, vPartial)

Source:
Javascript implementation of OOP's partial "class" concept, allowing a single object to be defined across multiple locations and/or files (with support for protected members).
Parameters:
Name Type Description
vTarget object | function Target object to receive properties.
vPartial object | function Source object whose properties will be copied into the target. Functions receive a single argument and their this context set to the target object's protected interfaces; e.g. vPartial(oProtectedMembers).

ish.oop.protected(vTarget, oProtected) → {object}

Source:
Merges the passed object into the passed target's protected members, adding or overriding properties within the target's protected members.
Parameters:
Name Type Description
vTarget object | function Target object to receive protected member properties.
oProtected object Source object whose properties will be copied into the target's protected members.
Returns:
Type Description
object Object representing the target's protected members.