window.extend Class

Defined in: window.extend:5
Module: Core

Use to do class inheritence

Methods

extend

(
  • child
  • [parent]
)
Object

Defined in extend:16

Extend prototype

Parameters:

  • child Function

    The reference to the child class

  • [parent] Function | String optional

    The parent class reference or full classname

Returns:

Object:

Reference to the child class's prototype

Example:

    var p = extend(MyClass, ParentClass);