Add an instance to the registry.
Identified by a namespace (extension ID) and an ID (module path).
Parameters
namespace: string
id: string
object: any
Returns void
get
get(namespace, id): any
Retrieve a module from the registry by namespace and ID.
Parameters
namespace: string
id: string
Returns any
onLoad
onLoad(namespace, id, handler): void
Add a function to run when object of id "id" is added (or overriden).
If such an object is already registered, the handler will be applied immediately.
Add an instance to the registry. Identified by a namespace (extension ID) and an ID (module path).