Components
Hubble's components are all held via a single application interface. The Hubble object holds access to all the
libraries components.
Components
The Hubble application can be globally accessed via the Hubble variable.
This is the only globally available variable
The container method returns the component container.
The helper method returns the helper library component.
The dom method returns the DOM manager component.
The require method returns a component/value from the container.
For objects that have parameters passed to the constructor, simply pass them as additional arguments.
Container
The Container is a globally unique component that stores all Hubble modules/components and variables.
The set method sets a key value pair.
You can set any variable type as the value.
Settings an object function allows you to store a re-usable
module.
You can also set an invoked instance as a value.
The singleton method allows you to register a globally unique
module. The module will not be instantiated until it is first called.
DOM Manager
The dom method returns the DOM Manager component.
The register method allows you to register a DOM module.
DOM modules are special singleton modules that can bind and unbind
any event listeners whenever the DOM is manipulated via the library.
This keeps the browser memory low, and ensures fast performance.
The refresh refreshes either all registered DOM modules
or a module by name;