src/collection.js
/**
 * Register a component to global
 * @param cmp
 */
Register a component to global
@param cmp
Register a component to global @param cmp
function registerComponent(cmp) {
    const tag = cmp.tag.toUpperCase();
    if (Object.prototype.hasOwnProperty.call(data.components, tag))
        console.warn('Doz', `component ${tag} overwritten`);
    data.components[tag] = cmp;
}
function registerComponent ( cmp ) { const tag = cmp . tag . toUpperCase ( ) ; if ( Object . prototype . hasOwnProperty . call ( data . components , tag ) ) console . warn ( 'Doz' , ` ${ tag } ` ) ; data . components [ tag ] = cmp ; }
Register a component to global
 @param cmp
Register a component to global @param cmp