lib/packages/core-classes.js
function(container, name_source_container) {

		if (Lava.schema.DEBUG && !name_source_container.isValueContainer) Lava.t();
		if (Lava.schema.DEBUG && !name_source_container.guid) Lava.t("Name source for segments must be either PropertyBinding or DataBinding");

		this._container = container;
		this._property_name = name_source_container.getValue();

		this._refreshDataBinding();

		if (container.isRefreshable) {
			this.level = container.level;
		}
		this.level = this.level > name_source_container.level ? this.level : name_source_container.level;
		this.level++;

		this._name_source_container = name_source_container;
		this._name_source_changed_listener = name_source_container.on('changed', this.onPropertyNameChanged, this);
		this._value = this._data_binding.getValue();
		Lava.schema.DEBUG && Lava.ScopeManager.debugTrackScope(this);

	}
function(container, name_source_container) {

		if (Lava.schema.DEBUG && !name_source_container.isValueContainer) Lava.t();
		if (Lava.schema.DEBUG && !name_source_container.guid) Lava.t("Name source for segments must be either PropertyBinding or DataBinding");

		this._container = container;
		this._property_name = name_source_container.getValue();

		this._refreshDataBinding();

		if (container.isRefreshable) {
			this.level = container.level;
		}
		this.level = this.level > name_source_container.level ? this.level : name_source_container.level;
		this.level++;

		this._name_source_container = name_source_container;
		this._name_source_changed_listener = name_source_container.on('changed', this.onPropertyNameChanged, this);
		this._value = this._data_binding.getValue();
		Lava.schema.DEBUG && Lava.ScopeManager.debugTrackScope(this);

	}
function ( container , name_source_container ) { if ( Lava . schema . DEBUG && ! name_source_container . isValueContainer ) Lava . t ( ) ; if ( Lava . schema . DEBUG && ! name_source_container . guid ) Lava . t ( "Name source for segments must be either PropertyBinding or DataBinding" ) ; this . _container = container ; this . _property_name = name_source_container . getValue ( ) ; this . _refreshDataBinding ( ) ; if ( container . isRefreshable ) { this . level = container . level ; } this . level = this . level > name_source_container . level ? this . level : name_source_container . level ; this . level ++ ; this . _name_source_container = name_source_container ; this . _name_source_changed_listener = name_source_container . on ( 'changed' , this . onPropertyNameChanged , this ) ; this . _value = this . _data_binding . getValue ( ) ; Lava . schema . DEBUG && Lava . ScopeManager . debugTrackScope ( this ) ; }
Create Segment instance. Refresh `_property_name`, `_data_binding` and get value
@param {(Lava.view.Abstract|Lava.scope.Abstract)} container
@param {(Lava.scope.PropertyBinding|Lava.scope.DataBinding)} name_source_container
Create Segment instance . Refresh _property_name _data_binding and get value