You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow users to assign arrays that will belong to the collector.
This will allow users to use arrays across multiple files, and will make it so the array doesn't have to be global.
constcollection=[1,2,3];Collector.registerCollection('nameOfCollection',collection);// Now you can doCollector.nameOfCollection// [1, 2, 3]
This will be foolproof and won't allow multiple collections to be referenced to the same name of course.
This will also allow collections to be deregistered.
Collector.deregisterCollection('nameOfCollection');// Now when referencing the collectionCollector.nameOfCollection// undefined
This will be foolproof and will only deregister collections that exist.
Will need to keep a array of tracked collections.
The text was updated successfully, but these errors were encountered:
This API won't directly attach a variable to the Collector class. Instead it will provide an API to retrieve a collection that has been registered to it.
Allow users to assign arrays that will belong to the collector.
This will allow users to use arrays across multiple files, and will make it so the array doesn't have to be global.
This will be foolproof and won't allow multiple collections to be referenced to the same name of course.
This will also allow collections to be deregistered.
This will be foolproof and will only deregister collections that exist.
Will need to keep a array of tracked collections.
The text was updated successfully, but these errors were encountered: