Getter

For use in the creation of components. Event is run when getting the value of a specific property and this property does not have a setter.

new ocs.Getter(arr, event);


Parameter Type Description
arr [String] keys of the getter
event Function event to run when when the property is gotten. Takes (entity, key) as parameters

Methods

Properties


Methods

event

a reference to the event associated with this Getter

ocs.Getter.event();


Properties

keys

[String]

a reference to the keys associated with the Getter.

ocs.Getter.keys