dist/crocodoc.viewer.js
function (name, scope) {
            var component = components[name];

            if (component) {
                var args = [];
                for (var i = 0; i < component.mixins.length; ++i) {
                    args.push(this.createComponent(component.mixins[i], scope));
                }
                args.unshift(scope);
                return component.creator.apply(component.creator, args);
            }

            return null;
        }
function (name, scope) {
            var component = components[name];

            if (component) {
                var args = [];
                for (var i = 0; i < component.mixins.length; ++i) {
                    args.push(this.createComponent(component.mixins[i], scope));
                }
                args.unshift(scope);
                return component.creator.apply(component.creator, args);
            }

            return null;
        }
function ( name , scope ) { var component = components [ name ] ; if ( component ) { var args = [ ] ; for ( var i = 0 ; i < component . mixins . length ; ++ i ) { args . push ( this . createComponent ( component . mixins [ i ] , scope ) ) ; } args . unshift ( scope ) ; return component . creator . apply ( component . creator , args ) ; } return null ; }
Create and return an instance of the named component
@param  {string} name The name of the component to create
@param  {Crocodoc.Scope} scope The scope object to create the component on
@returns {?Object}     The component instance or null if the component doesn't exist
Create and return an instance of the named component