deleteInstanceReference
Remove a reference from the instanceStore so an instance can be garbage collected.
connection.addInstanceReference( instance )
Decrements the number of references to an instance in the instanceStore. Removes the instance if there are no longer any references.
Parameters
- instance
{Instance}
:the instance to remove
Usage
deleteInstanceReference
is called to remove references to instances in the instanceStore so that instances maybe garbage collected. It's usually called when the application or some part of the application no longer is interested in an instance.addInstanceReference has an example of adding an instance to the store. The following continues that example to remove the
originalTodo
instance from the store:todoConnection.deleteInstanceReference(originalTodo);
Also see the usage example on the index page for a more complete example of the lifecycle of a reference.