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

		if ('id' in config.fields) Lava.t("Id field in MetaStorage is not permitted");

		this._config = config;
		this._createFields(config);
		this.initFields(); // MetaStorage is constructed directly, not via App class

		var field;

		if (Lava.schema.DEBUG) {
			for (field in this._fields) {
				if (this._fields[field].isCollectionField || this._fields[field].isRecordField)
					Lava.t("Standard Collection and Record fields will not work inside the MetaStorage");
			}
		}

		this._record_constructor = Lava.ClassManager.getConstructor('MetaRecord', 'Lava.data');

	}
function(config) {

		if ('id' in config.fields) Lava.t("Id field in MetaStorage is not permitted");

		this._config = config;
		this._createFields(config);
		this.initFields(); // MetaStorage is constructed directly, not via App class

		var field;

		if (Lava.schema.DEBUG) {
			for (field in this._fields) {
				if (this._fields[field].isCollectionField || this._fields[field].isRecordField)
					Lava.t("Standard Collection and Record fields will not work inside the MetaStorage");
			}
		}

		this._record_constructor = Lava.ClassManager.getConstructor('MetaRecord', 'Lava.data');

	}
function ( config ) { if ( 'id' in config . fields ) Lava . t ( "Id field in MetaStorage is not permitted" ) ; this . _config = config ; this . _createFields ( config ) ; this . initFields ( ) ; // MetaStorage is constructed directly, not via App class var field ; if ( Lava . schema . DEBUG ) { for ( field in this . _fields ) { if ( this . _fields [ field ] . isCollectionField || this . _fields [ field ] . isRecordField ) Lava . t ( "Standard Collection and Record fields will not work inside the MetaStorage" ) ; } } this . _record_constructor = Lava . ClassManager . getConstructor ( 'MetaRecord' , 'Lava.data' ) ; }
Create an instance of MetaStorage
@param {_cMetaStorage} config
Create an instance of MetaStorage