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

		var view,
			i = 0,
			count,
			result,
			tail = path_config.tail,
			property_name;

		if ('property_name' in path_config) {

			view = ('locator_type' in path_config) ? this.locateViewByPathConfig(path_config) : this;

			view = view.locateViewWithProperty(path_config.property_name);

			result = view.get(path_config.property_name);

		} else {

			if (Lava.schema.DEBUG && !('locator_type' in path_config)) Lava.t("Malformed scope path (1)");
			if (Lava.schema.DEBUG && !tail) Lava.t("Malformed scope path (2)");

			result = this.locateViewByPathConfig(path_config);

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

		}

		if (tail) {

			for (count = tail.length; i < count; i++) {

				property_name = (typeof(tail[i]) == 'object') ? this.evalPathConfig(tail[i]) : tail[i];

				if (result.isCollection && /^\d+$/.test(property_name)) {

					result = result.getValueAt(+property_name);

				} else if (result.isProperties) {

					result = result.get(property_name);

				} else {

					result = result[property_name];

				}

				if (!result) {

					break;

				}

			}

		}

		return result;

	}
function(path_config) {

		var view,
			i = 0,
			count,
			result,
			tail = path_config.tail,
			property_name;

		if ('property_name' in path_config) {

			view = ('locator_type' in path_config) ? this.locateViewByPathConfig(path_config) : this;

			view = view.locateViewWithProperty(path_config.property_name);

			result = view.get(path_config.property_name);

		} else {

			if (Lava.schema.DEBUG && !('locator_type' in path_config)) Lava.t("Malformed scope path (1)");
			if (Lava.schema.DEBUG && !tail) Lava.t("Malformed scope path (2)");

			result = this.locateViewByPathConfig(path_config);

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

		}

		if (tail) {

			for (count = tail.length; i < count; i++) {

				property_name = (typeof(tail[i]) == 'object') ? this.evalPathConfig(tail[i]) : tail[i];

				if (result.isCollection && /^\d+$/.test(property_name)) {

					result = result.getValueAt(+property_name);

				} else if (result.isProperties) {

					result = result.get(property_name);

				} else {

					result = result[property_name];

				}

				if (!result) {

					break;

				}

			}

		}

		return result;

	}
function ( path_config ) { var view , i = 0 , count , result , tail = path_config . tail , property_name ; if ( 'property_name' in path_config ) { view = ( 'locator_type' in path_config ) ? this . locateViewByPathConfig ( path_config ) : this ; view = view . locateViewWithProperty ( path_config . property_name ) ; result = view . get ( path_config . property_name ) ; } else { if ( Lava . schema . DEBUG && ! ( 'locator_type' in path_config ) ) Lava . t ( "Malformed scope path (1)" ) ; if ( Lava . schema . DEBUG && ! tail ) Lava . t ( "Malformed scope path (2)" ) ; result = this . locateViewByPathConfig ( path_config ) ; if ( Lava . schema . DEBUG && ! result ) Lava . t ( "View not found. " + path_config . locator_type + ": " + path_config . locator + ", depth:" + path_config . depth ) ; } if ( tail ) { for ( count = tail . length ; i < count ; i ++ ) { property_name = ( typeof ( tail [ i ] ) == 'object' ) ? this . evalPathConfig ( tail [ i ] ) : tail [ i ] ; if ( result . isCollection && / ^\d+$ / . test ( property_name ) ) { result = result . getValueAt ( + property_name ) ; } else if ( result . isProperties ) { result = result . get ( property_name ) ; } else { result = result [ property_name ] ; } if ( ! result ) { break ; } } } return result ; }
Get value of the route without creating scopes
@param {_cScopeLocator} path_config
@returns {*}
Get value of the route without creating scopes