Constructor
# new KVOObject()
Creates an instance of KVOObject.
- KVOObject#event:{key}_changed
- KVOObject#event:changed
Methods
Events
# changed
This event will fire when any value is changed.
Properties:
Name | Type | Description |
---|---|---|
args |
Object | |
key |
string | The key of the value that has changed. |
newValue |
* | The new value. |
oldValue |
* | The old value. |
Example
instance.addListener('changed', (args) => {...});