A2v10 Platform documentation
UK


Object Properties and Methods

Each object is expanded with the following additional service properties and methods:


Properties

readonly $root: IRoot

Root object reference (IRoot).

readonly $ctrl: IController

Controller object reference (IController).

Methods

$empty(): IElement

Description

Cleans up an object. Cleaning up an object means setting all of its properties to their default values. Cleaning is recursive. This means that all nested objects will be cleaned up as well.

Returns:

  • Reference to itself