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

		var result = this['locateViewBy' + path_config.locator_type](path_config.locator);

		if (Lava.schema.DEBUG && !result) Lava.t("View not found. " + path_config.locator_type + ':' + path_config.locator);

		if ('depth' in path_config) {

			result = result.getViewByDepth(path_config.depth);

		}

		return result;

	}
function(path_config) {

		var result = this['locateViewBy' + path_config.locator_type](path_config.locator);

		if (Lava.schema.DEBUG && !result) Lava.t("View not found. " + path_config.locator_type + ':' + path_config.locator);

		if ('depth' in path_config) {

			result = result.getViewByDepth(path_config.depth);

		}

		return result;

	}
function ( path_config ) { var result = this [ 'locateViewBy' + path_config . locator_type ] ( path_config . locator ) ; if ( Lava . schema . DEBUG && ! result ) Lava . t ( "View not found. " + path_config . locator_type + ':' + path_config . locator ) ; if ( 'depth' in path_config ) { result = result . getViewByDepth ( path_config . depth ) ; } return result ; }
Find a view in hierarchy of parents by the given route
@param {_cScopeLocator|_cKnownViewLocator} path_config
@returns {Lava.view.Abstract}
Find a view in hierarchy of parents by the given route