deleteListReference
function
Removes a reference to a list by listSet so it can be garbage collected.
connection.addInstanceReference( instance )
Decrements the number of references to an list in the listStore. Removes the list if there are no longer any references.
Parameters
- list
{Instance}:The list to remove.
Use
deleteListReference is called to remove references to lists in
the listStore so the lists maybe garbage
collected. It's usually called when the application or some part of the application no
longer is interested in an list.
addListReference has an example of adding
a list to the store. The following continues that example to remove
the dueToday from the store:
todoConnection.deleteListReference(dueToday);