ObservedValue
ObservedValue
Kind: global class
- ObservedValue
- new ObservedValue(v)
- .getValue :
function - .set(value)
- .setSilent(value)
- .get() ⇒
T - .copy(other)
- .equals(other) ⇒
boolean - .clone() ⇒
ObservedValue.<T> - .process(processor, [thisArg]) ⇒
ObservedValue.<T>
new ObservedValue(v)
| Param | Type |
|---|---|
| v | T |
observedValue.getValue : function
Kind: instance property of ObservedValue
observedValue.set(value)
Kind: instance method of ObservedValue
| Param | Type |
|---|---|
| value | T |
observedValue.setSilent(value)
Set value without triggering #onChanged signal
Kind: instance method of ObservedValue
See: #set
| Param | Type |
|---|---|
| value | T |
observedValue.get() ⇒ T
Kind: instance method of ObservedValue
observedValue.copy(other)
Kind: instance method of ObservedValue
| Param | Type |
|---|---|
| other | ObservedValue |
observedValue.equals(other) ⇒ boolean
Kind: instance method of ObservedValue
| Param | Type |
|---|---|
| other | ObservedValue |
observedValue.clone() ⇒ ObservedValue.<T>
Kind: instance method of ObservedValue
observedValue.process(processor, [thisArg]) ⇒ ObservedValue.<T>
Convenience method, invoked given function with current value and registers onChanged callback
Kind: instance method of ObservedValue
| Param | Type |
|---|---|
| processor | function |
| [thisArg] | * |