dist/crocodoc.viewer.js
function (name, mixins, creator) {
            if (mixins instanceof Function) {
                creator = mixins;
                mixins = [];
            }
            // make sure this component won't cause a circular mixin dependency
            findCircularDependencies(name, mixins);
            components[name] = {
                mixins: mixins,
                creator: creator
            };
        }
function (name, mixins, creator) {
            if (mixins instanceof Function) {
                creator = mixins;
                mixins = [];
            }
            // make sure this component won't cause a circular mixin dependency
            findCircularDependencies(name, mixins);
            components[name] = {
                mixins: mixins,
                creator: creator
            };
        }
function ( name , mixins , creator ) { if ( mixins instanceof Function ) { creator = mixins ; mixins = [ ] ; } // make sure this component won't cause a circular mixin dependency findCircularDependencies ( name , mixins ) ; components [ name ] = { mixins : mixins , creator : creator } ; }
Register a new component
@param  {string} name      The (unique) name of the component
@param  {Array} mixins     Array of component names to instantiate and pass as mixinable objects to the creator method
@param  {Function} creator Factory function used to create an instance of the component
@returns {void}
Register a new component