Class: PropertiesManager

PropertiesManager

new PropertiesManager(tag)

Properties manager (data for hits)

Name Type Description
tag object Instance of the Tag used

Methods

delProp(key, keepBufferParam)

Delete/remove a property
Name Type Description
key string Key name of the property
keepBufferParam boolean optional Keep the parameter from the buffer (optional)

delProps(keepBufferParams)

Delete/remove all properties
Name Type Description
keepBufferParams boolean optional Keep the parameters from the buffer (optional)

getProp(key){string|number|undefined|null}

Get a property
Name Type Description
key string Key name of the property

getProp(){object}

Get all properties

setProp(key, value, persistent)

Set a property (overrides if present)
Name Type Description
key string Key name of the property
value string | number value of the property
persistent boolean Persistence of property

setProps(props, persistent)

Set multiple properties (overrides if present)
Name Type Description
props object Object to be added
persistent boolean Persistence of object properties