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.
the instance to remove
deleteInstanceReferenceis 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
originalTodoinstance from the store:
Also see the usage example on the index page for a more complete example of the lifecycle of a reference.