Class

KVOObject

KVOObject()

Key-Value Observing object.
Constructor

# new KVOObject()

Creates an instance of KVOObject.

Methods

# get(key) → {*}

Parameters:
Name Type Description
key string
*

# getValues() → {Object}

Returns all values as key value pairs.
Object

# set(key, value)

Parameters:
Name Type Description
key string
value Object

# setValues(values)

Parameters:
Name Type Description
values Object

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) => {...});