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

		this._app = lava_app;
		this._config = config;
		this._name = name;

		this._createFields(config);

		this._record_constructor = Lava.ClassManager.getConstructor(
			config.record_class || Lava.schema.data.DEFAULT_RECORD_CLASS,
			'Lava.data'
		);

		if ('id' in this._fields) {

			this._has_id = true;
			this._fields['id'].on('changed', this._onRecordIdChanged, this);

		}

	}
function(lava_app, config, name) {

		this._app = lava_app;
		this._config = config;
		this._name = name;

		this._createFields(config);

		this._record_constructor = Lava.ClassManager.getConstructor(
			config.record_class || Lava.schema.data.DEFAULT_RECORD_CLASS,
			'Lava.data'
		);

		if ('id' in this._fields) {

			this._has_id = true;
			this._fields['id'].on('changed', this._onRecordIdChanged, this);

		}

	}
function ( lava_app , config , name ) { this . _app = lava_app ; this . _config = config ; this . _name = name ; this . _createFields ( config ) ; this . _record_constructor = Lava . ClassManager . getConstructor ( config . record_class || Lava . schema . data . DEFAULT_RECORD_CLASS , 'Lava.data' ) ; if ( 'id' in this . _fields ) { this . _has_id = true ; this . _fields [ 'id' ] . on ( 'changed' , this . _onRecordIdChanged , this ) ; } }
Create a Module instance, init fields, generate the method that returns initial record properties
@param {Lava.system.App} lava_app Application instance
@param {_cModule} config
@param {string} name Module's name
Create a Module instance init fields generate the method that returns initial record properties