lib/packages/core-classes.js
function(config) {

		var field_name,
			type,
			constructor;

		for (field_name in config.fields) {

			type = config.fields[field_name].type || Lava.schema.data.DEFAULT_FIELD_TYPE;
			constructor = Lava.ClassManager.getConstructor(type, 'Lava.data.field');
			this._fields[field_name] = new constructor(
				this,
				field_name,
				config.fields[field_name],
				this._properties_by_guid
			);

		}

	}
function(config) {

		var field_name,
			type,
			constructor;

		for (field_name in config.fields) {

			type = config.fields[field_name].type || Lava.schema.data.DEFAULT_FIELD_TYPE;
			constructor = Lava.ClassManager.getConstructor(type, 'Lava.data.field');
			this._fields[field_name] = new constructor(
				this,
				field_name,
				config.fields[field_name],
				this._properties_by_guid
			);

		}

	}
function ( config ) { var field_name , type , constructor ; for ( field_name in config . fields ) { type = config . fields [ field_name ] . type || Lava . schema . data . DEFAULT_FIELD_TYPE ; constructor = Lava . ClassManager . getConstructor ( type , 'Lava.data.field' ) ; this . _fields [ field_name ] = new constructor ( this , field_name , config . fields [ field_name ] , this . _properties_by_guid ) ; } }
Create field instances and return the default record properties object
@param {(_cModule|_cMetaStorage)} config
@returns {Object} Default record properties object with initial values for each field
Create field instances and return the default record properties object