function resolveType(o) {
			var FNType;
			var sType = o.type;
			if (typeof sType === "string" ) {
				FNType = resolveReference(sType, mVariables, {
					bindContext: false
				});

				// TODO find another solution for the type parameters?
				if (typeof FNType === "function") {
					o.type = new FNType(o.formatOptions, o.constraints);
				} else {
					o.type = FNType;
				}

				if (!o.type) {
					Log.error("Failed to resolve type '" + sType + "'. Maybe not loaded or a typo?");
				}

				// TODO why are formatOptions and constraints also removed for an already instantiated type?
				// TODO why is a value of type object not validated (instanceof Type)
				delete o.formatOptions;
				delete o.constraints;
			}
		}
/*
		 * Resolves a data type name and configuration either to a type constructor or to a type instance.
		 *
		 * The name is resolved locally (against oEnv.oContext) if it starts with a '.', otherwise against
		 * the oEnv.mLocals and if it's still not resolved, against the global context (window).
		 *
		 * The resolution is done inplace. If the name resolves to a function, it is assumed to be the
		 * constructor of a data type. A new instance will be created, using the values of the
		 * properties 'constraints' and 'formatOptions' as parameters of the constructor.
		 * Both properties will be removed from <code>o</code>.
		 *
		 * @param {object} o Object from which a property should be read and resolved
		 */
Resolves a data type name and configuration either to a type constructor or to a type instance.
The name is resolved locally (against oEnv.oContext) if it starts with a '.', otherwise against
the oEnv.mLocals and if it's still not resolved, against the global context (window).

The resolution is done inplace. If the name resolves to a function, it is assumed to be the
constructor of a data type. A new instance will be created, using the values of the
properties 'constraints' and 'formatOptions' as parameters of the constructor.
Both properties will be removed from o.

@param {object} o Object from which a property should be read and resolved
Resolves a data type name and configuration either to a type constructor or to a type instance . The name is resolved locally ( against oEnv . oContext ) if it starts with a ' . ' otherwise against the oEnv . mLocals and if it ' s still not resolved against the global context ( window ) . The resolution is done inplace . If the name resolves to a function it is assumed to be the constructor of a data type . A new instance will be created using the values of the properties ' constraints ' and ' formatOptions ' as parameters of the constructor . Both properties will be removed from o . @param { object } o Object from which a property should be read and resolved
function resolveType(o) {
			var FNType;
			var sType = o.type;
			if (typeof sType === "string" ) {
				FNType = resolveReference(sType, mVariables, {
					bindContext: false
				});
				if (typeof FNType === "function") {
					o.type = new FNType(o.formatOptions, o.constraints);
				} else {
					o.type = FNType;
				}
				if (!o.type) {
					Log.error("Failed to resolve type '" + sType + "'. Maybe not loaded or a typo?");
				}
				delete o.formatOptions;
				delete o.constraints;
			}
		}
function resolveType ( o ) { var FNType ; var sType = o . type ; if ( typeof sType === "string" ) { FNType = resolveReference ( sType , mVariables , { bindContext : false } ) ; if ( typeof FNType === "function" ) { o . type = new FNType ( o . formatOptions , o . constraints ) ; } else { o . type = FNType ; } if ( ! o . type ) { Log . error ( "Failed to resolve type '" + sType + "'. Maybe not loaded or a typo?" ) ; } delete o . formatOptions ; delete o . constraints ; } }
Resolves a data type name and configuration either to a type constructor or to a type instance.
Resolves a data type name and configuration either to a type constructor or to a type instance .
// TODO find another solution for the type parameters? // TODO why are formatOptions and constraints also removed for an already instantiated type? // TODO why is a value of type object not validated (instanceof Type)