Any valid javascript type that is returned from the ComputedObservable._computedFunction function.
ComputedFunction definition.
Function that should be used to evaluate this object's Observable.value.
List of ComputedObservables that need to be updated when value changes.
List of WatcherFunctions that get run when the observable value changes.
Current value of the observable.
Safely evaluate the return value of _computedFunction.
Observable updates are turned off to ensure computed observables have no side effects.
Add a new ComputedObservable to be observed.
ComputedObservable to be observed.
Stop observing a ComputedObservable.
ComputedObservable to stop observing.
Remove a WatcherFunction from the watchers list.
WatcherFunction to be removed.
Method used to update the value property. This method is overridden from the base class to ensure it only runs when there is a valid data change.
New value of the computed observable.
Add a WatcherFunction to be called when value changes.
WatcherFunction to be called on value change.
Generated using TypeDoc
A ComputedObservable is an Observable that contains a ComputedFunction.
The intention of a computed function is to use it to evaluate Observable.value instead of setting it directly.
Similarly to Observables a ComputedObservable can also be watched and observed.