Skip to main content

ObservedValue

ObservedValue

Kind: global class

new ObservedValue(v)

ParamType
vT

observedValue.getValue : function

Kind: instance property of ObservedValue

observedValue.set(value)

Kind: instance method of ObservedValue

ParamType
valueT

observedValue.setSilent(value)

Set value without triggering #onChanged signal

Kind: instance method of ObservedValue
See: #set

ParamType
valueT

observedValue.get() ⇒ T

Kind: instance method of ObservedValue

observedValue.copy(other)

Kind: instance method of ObservedValue

ParamType
otherObservedValue

observedValue.equals(other) ⇒ boolean

Kind: instance method of ObservedValue

ParamType
otherObservedValue

observedValue.clone() ⇒ ObservedValue.<T>

Kind: instance method of ObservedValue

observedValue.process(processor) ⇒ ObservedValue.<T>

Convenience method, invoked given function with current value and registers onChanged callback

Kind: instance method of ObservedValue

ParamType
processorfunction