Constructor
new ComputedRegistry(computedopt)
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
computed |
Object |
<optional> |
{} | An object containing computed property definitions (expressions). |
Classes
Members
computed :Object
Type:
- Object
Methods
all() → {Object}
Returns all registered computed property definitions.
Returns:
- Type
- Object
get(key) → {string|undefined}
Returns the expression for a given computed property key.
Parameters:
| Name | Type | Description |
|---|---|---|
key |
string | The key to retrieve. |
Returns:
- Type
- string | undefined
has(key) → {boolean}
Checks if a computed property with the given key exists.
Parameters:
| Name | Type | Description |
|---|---|---|
key |
string | The key to check. |
Returns:
- Type
- boolean
keys() → {Array.<string>}
Returns the keys of all registered computed properties.
Returns:
- Type
- Array.<string>