UNPKG

treant

Version:

Dependency free component library for the browser

16 lines (11 loc) 313 B
var registry = module.exports = {} var components = {} registry.get = function exists (name) { return components[name] } registry.exists = function exists (name) { return !!components[name] } registry.set = function exists (name, ComponentConstructor) { return components[name] = ComponentConstructor }