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:
-
receiverFunctionThe class which will extend another class.
-
supplierFunctionThe class which will provide the properties the child class.
-
protoPropsObjectPrototype properties to add/override.
-
staticPropsObjectStatic properties to add/overwrite.
Returns:
Function:
The extended class.