Class core.LazyProperty
Defined in: LazyProperty.js.
Constructor Attributes | Constructor Name and Description |
---|---|
core.LazyProperty(valueLoader)
Lazily loaded property.
|
Method Attributes | Method Name and Description |
---|---|
reset()
|
|
value()
|
Class Detail
core.LazyProperty(valueLoader)
Lazily loaded property. The value is loaded using the valueLoader and cached
the first time it's requested. Subsequent requests will return the cached value.
Calling reset will clear the cached value, causing the next value request
to load a new value via the valueLoader.
- Parameters:
- {!function():Object} valueLoader
- Property value loader
Method Detail
{undefined}
reset()
- Returns:
- {undefined}
{T}
value()
- Returns:
- {T}