new BaseObject(opt_values)
Name | Type | Description |
---|---|---|
values |
Object.<string, *> |
An object with key-value pairs. |
Fires:
-
propertychange
(module:saij/core/Object~ObjectEvent) - Triggered when a property is changed.
Methods
-
get(key){*}
src/saij/core/Object.js, line 136 -
Gets a value.
Name Type Description key
string Key name.
Returns:
Value.
-
getKeys(){Array.<string>}
src/saij/core/Object.js, line 148 -
Get a list of object property names.
Returns:
List of property names.
-
getProperties(){Object.<string, *>}
src/saij/core/Object.js, line 157 -
Get an object of all property names and values.
Returns:
Object.
-
set(key, value, opt_silent)
src/saij/core/Object.js, line 180 -
Sets a value.
Name Type Description key
string Key name.
value
* Value.
silent
boolean Update without triggering an event.
-
setProperties(values, opt_silent)
src/saij/core/Object.js, line 199 -
Sets a collection of key-value pairs. Note that this changes any existing properties and adds new ones (it does not remove any existing properties).
Name Type Description values
Object.<string, *> Values.
silent
boolean Update without triggering an event.
-
unset(key, opt_silent)
src/saij/core/Object.js, line 212 -
Unsets a property.
Name Type Description key
string Key name.
silent
boolean Unset without triggering an event.