new Instance(tag)
Parameters:
Name | Type | Description |
---|---|---|
tag |
string | The instance tag |
Methods
-
addProperty(propertyTag, value)
-
Set a value for the specified property. Override it if there already is a value.
Parameters:
Name Type Description propertyTag
string value
* Returns:
-
deleteProperty(propertyTag)
-
Remove the specified property value from this instance.
Parameters:
Name Type Description propertyTag
string the property tag
Returns:
-
forEachProperty(callback)
-
Iterates over all properties of the instance with the callback
Parameters:
Name Type Description callback
function -
getTag()
-
Returns the instance tag
Returns:
- Type
- string