Class Index | File Index

Classes


Class core.LazyProperty


Defined in: LazyProperty.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
core.LazyProperty(valueLoader)
Lazily loaded property.
Method Summary
Method Attributes Method Name and Description
 
 
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}

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Aug 06 2015 04:10:39 GMT+0200 (MESZ)