Class: kb.DefaultObservable
Defined in: | src/defaults/default-observable.coffee |
Instance Method Summary
- # (void) destroy() Required clean up function to break cycles, release view models, etc.
- # (void) setToDefault() Forces the observable to take the default value.
Constructor Details
#
(ko.observable)
constructor(target_observable, dv)
Note:
the constructor does not return 'this' but a ko.observable
Used to create a new kb.DefaultObservable.
Instance Method Details
#
(void)
destroy()
Required clean up function to break cycles, release view models, etc. Can be called directly, via kb.release(object) or as a consequence of ko.releaseNode(element).
#
(void)
setToDefault()
Note:
Can be used with kb.utils.setToDefault, kb.Observable.setToDefault, kb.ViewModel.setToDefault
Forces the observable to take the default value.