addReference
WeakReferenceMap.addReference(key, item)
Adds a reference to item as key and increments the reference count. This should be called when a value should be managed by something, typically the constructor/store.
Parameters
- key
{String}
:The key of the item in the store.