processor.js
function(type, parameters, args) {

            parameters = parameters || {};
            args = args || {};

            var __type = parse_type(type, parameters, args),
                constructor = resolve_ctr(__type, parameters);

            if (!constructor)
                throw new TypeError('Type ' + __type + ' not registered!');

            for(var prop in parameters)
                if (parameters.hasOwnProperty(prop) && prop[0] === '$')
                    args[prop.substr(1)] = parameters[prop];

            // create object

            var new_control = (constructor.is_constructor) // constructor or factory method ?
                ? new constructor(parameters, args)
                : constructor(parameters, args);

            // reflect after creation if control only
            if (typeof new_control === 'object' && '__type' in new_control)
                new_control.raise('type');

            return new_control;
        }
function(type, parameters, args) {

            parameters = parameters || {};
            args = args || {};

            var __type = parse_type(type, parameters, args),
                constructor = resolve_ctr(__type, parameters);

            if (!constructor)
                throw new TypeError('Type ' + __type + ' not registered!');

            for(var prop in parameters)
                if (parameters.hasOwnProperty(prop) && prop[0] === '$')
                    args[prop.substr(1)] = parameters[prop];

            // create object

            var new_control = (constructor.is_constructor) // constructor or factory method ?
                ? new constructor(parameters, args)
                : constructor(parameters, args);

            // reflect after creation if control only
            if (typeof new_control === 'object' && '__type' in new_control)
                new_control.raise('type');

            return new_control;
        }
function ( type , parameters , args ) { parameters = parameters || { } ; args = args || { } ; var __type = parse_type ( type , parameters , args ) , constructor = resolve_ctr ( __type , parameters ) ; if ( ! constructor ) throw new TypeError ( 'Type ' + __type + ' not registered!' ) ; for ( var prop in parameters ) if ( parameters . hasOwnProperty ( prop ) && prop [ 0 ] === '$' ) args [ prop . substr ( 1 ) ] = parameters [ prop ] ; // create object var new_control = ( constructor . is_constructor ) // constructor or factory method ? ? new constructor ( parameters , args ) : constructor ( parameters , args ) ; // reflect after creation if control only if ( typeof new_control === 'object' && '__type' in new_control ) new_control . raise ( 'type' ) ; return new_control ; }
Create from parsed parameters and arguments.

@param {string} type base type [and parameters].
@param {object} parameters Parsed parameters.
@param {object} args Parsed arguments.
@returns {object} Returns newly created component object.
Create from parsed parameters and arguments .