window.mixin Class

Defined in: window.mixin:5
Module: Core

Static class for mixing in functionality into objects.

Methods

mixin

(
  • target
  • superClass
  • [args]
)

Defined in mixin:15

Mixin functionality to an object

Parameters:

  • target

    The instance object to add functionality to

  • superClass Function | String

    The parent reference or full classname

  • [args] optional

    Any additional arguments to pass to the constructor of the superClass

Returns:

:

Return reference to target

Example:

    mixin(instance, MyClass);