lib/packages/core.js
function(config, parent_config) {

		var locale_cache = {};

		if ('resources' in config) {

			if (Lava.schema.LOCALE in config.resources) {
				locale_cache = Lava.resources.mergeResources(locale_cache, config.resources[Lava.schema.LOCALE]);
			}
			if ('default' in config.resources) {
				locale_cache = Lava.resources.mergeResources(locale_cache, config.resources['default']);
			}

		}

		if (parent_config && ('resources_cache' in parent_config)) {

			locale_cache = Lava.resources.mergeResources(locale_cache, parent_config.resources_cache[Lava.schema.LOCALE]);

		}

		if (!Firestorm.Object.isEmpty(locale_cache)) {

			config.resources_cache = {};
			config.resources_cache[Lava.schema.LOCALE] = locale_cache;

		}

	}
function(config, parent_config) {

		var locale_cache = {};

		if ('resources' in config) {

			if (Lava.schema.LOCALE in config.resources) {
				locale_cache = Lava.resources.mergeResources(locale_cache, config.resources[Lava.schema.LOCALE]);
			}
			if ('default' in config.resources) {
				locale_cache = Lava.resources.mergeResources(locale_cache, config.resources['default']);
			}

		}

		if (parent_config && ('resources_cache' in parent_config)) {

			locale_cache = Lava.resources.mergeResources(locale_cache, parent_config.resources_cache[Lava.schema.LOCALE]);

		}

		if (!Firestorm.Object.isEmpty(locale_cache)) {

			config.resources_cache = {};
			config.resources_cache[Lava.schema.LOCALE] = locale_cache;

		}

	}
function ( config , parent_config ) { var locale_cache = { } ; if ( 'resources' in config ) { if ( Lava . schema . LOCALE in config . resources ) { locale_cache = Lava . resources . mergeResources ( locale_cache , config . resources [ Lava . schema . LOCALE ] ) ; } if ( 'default' in config . resources ) { locale_cache = Lava . resources . mergeResources ( locale_cache , config . resources [ 'default' ] ) ; } } if ( parent_config && ( 'resources_cache' in parent_config ) ) { locale_cache = Lava . resources . mergeResources ( locale_cache , parent_config . resources_cache [ Lava . schema . LOCALE ] ) ; } if ( ! Firestorm . Object . isEmpty ( locale_cache ) ) { config . resources_cache = { } ; config . resources_cache [ Lava . schema . LOCALE ] = locale_cache ; } }
Merge algorithm for resources
@param {_cWidget} config
@param {_cWidget} parent_config
Merge algorithm for resources