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

		var result;

		if (Lava.schema.DEBUG && !raw_properties.id) Lava.t('safeLoadRecord: import data must have an id');

		if (raw_properties.id in this._records_by_id) {

			result = this._records_by_id[raw_properties.id];

		} else {

			result = this.loadRecord(raw_properties);

		}

		return result;

	}
function(raw_properties) {

		var result;

		if (Lava.schema.DEBUG && !raw_properties.id) Lava.t('safeLoadRecord: import data must have an id');

		if (raw_properties.id in this._records_by_id) {

			result = this._records_by_id[raw_properties.id];

		} else {

			result = this.loadRecord(raw_properties);

		}

		return result;

	}
function ( raw_properties ) { var result ; if ( Lava . schema . DEBUG && ! raw_properties . id ) Lava . t ( 'safeLoadRecord: import data must have an id' ) ; if ( raw_properties . id in this . _records_by_id ) { result = this . _records_by_id [ raw_properties . id ] ; } else { result = this . loadRecord ( raw_properties ) ; } return result ; }
Load record only if it has not been already loaded. `raw_properties` must have an ID
@param {Object} raw_properties Serialized record fields from server
@returns {Lava.data.Record} Newly loaded record instance, or the old one
Load record only if it has not been already loaded . raw_properties must have an ID