extend

extend

Methods

# (static) derive(makeDefaultOpt, initializeopt, protoopt) → {function}

Source:

Extend a sub class from base class

Parameters:
Name Type Attributes Description
makeDefaultOpt object | function

default option of this sub class, method of the sub can use this.xxx to access this option

initialize function <optional>

Initialize after the sub class is instantiated

proto Object <optional>

Prototype methods/properties of the sub class

Returns:
Type
function