v7.3.0

Base
Abstract

Base class for all configurable classes.

Subclasses do not have to implement a constructor with its restriction of having to call super() before there is a this reference. Subclasses instead implement a construct method which is called by the Base constructor. This may call its super implementation at any time.

The Base constructor applies all configs to properties of the new instance. The instance will have been configured after the super.construct(config) is called.

See the Class System documentation in the guides for more information.

No results

Properties

Properties are getters/setters or publicly accessible variables on this class
  • properties : Object
    internal
    static

    A class property getter for the default values of internal properties for this class.

  • emptyArray : Array
    internal
    READONLY

    An empty array that can be used as a default value.

  • emptyObject : Object
    internal
    READONLY

    An empty object that can be used as a default value.

  • config : Object
    READONLY
    ADVANCED

    Returns a copy of the full configuration which was used to configure this object.

  • isConstructing : Boolean
    READONLY
    ADVANCED

    This property is set to true before the constructor returns.

  • isDestroying : Boolean
    READONLY
    ADVANCED

    This property is set to true on entry to the destroy method. It remains on the objects after returning from destroy(). If isDestroyed is true, this property will also be true, so there is no need to test for both (for example, comp.isDestroying || comp.isDestroyed).

Functions

Functions are methods available for calling on the class
  • onClassMixedIn( )
    internal
    static

    This optional class method is called when a class is mixed in using the mixin() method.

  • initClass( )
    static
    ADVANCED

    Registers this class type with its Factory

Source path

Core/Base.js

Contents