OOP Class
Defined in:
src/ui/react/src/oop/oop.js:4
Provides OOP utilities.
Index
Methods
- extend static
Methods
extend
(
Function
static
-
receiver
-
supplier
-
protoProps
-
staticProps
Sets the prototype, constructor and superclass properties to support an inheritance strategy that can chain constructors and methods. Static members will not be inherited.
Parameters:
-
receiver
FunctionThe class which will extend another class.
-
supplier
FunctionThe class which will provide the properties the child class.
-
protoProps
ObjectPrototype properties to add/override.
-
staticProps
ObjectStatic properties to add/overwrite.
Returns:
Function:
The extended class.