lib/packages/core-classes.js
function(config, widget) {

		this._widget = widget;
		this._property_name = config.property_name;
		this._scope = widget.getScopeByPathConfig(config.path_config);

		if (config.from_widget) {

			this._scope.setValue(this._widget.get(this._property_name));

		} else {

			this._widget.set(this._property_name, this._scope.getValue());
			this._scope_changed_listener = this._scope.on('changed', this.onScopeChanged, this);

		}

		if (!this._scope.isSetValue) Lava.t("Binding: bound scope does not implement setValue");
		this._widget_property_changed_listener = widget.onPropertyChanged(this._property_name, this.onWidgetPropertyChanged, this);

	}
function(config, widget) {

		this._widget = widget;
		this._property_name = config.property_name;
		this._scope = widget.getScopeByPathConfig(config.path_config);

		if (config.from_widget) {

			this._scope.setValue(this._widget.get(this._property_name));

		} else {

			this._widget.set(this._property_name, this._scope.getValue());
			this._scope_changed_listener = this._scope.on('changed', this.onScopeChanged, this);

		}

		if (!this._scope.isSetValue) Lava.t("Binding: bound scope does not implement setValue");
		this._widget_property_changed_listener = widget.onPropertyChanged(this._property_name, this.onWidgetPropertyChanged, this);

	}
function ( config , widget ) { this . _widget = widget ; this . _property_name = config . property_name ; this . _scope = widget . getScopeByPathConfig ( config . path_config ) ; if ( config . from_widget ) { this . _scope . setValue ( this . _widget . get ( this . _property_name ) ) ; } else { this . _widget . set ( this . _property_name , this . _scope . getValue ( ) ) ; this . _scope_changed_listener = this . _scope . on ( 'changed' , this . onScopeChanged , this ) ; } if ( ! this . _scope . isSetValue ) Lava . t ( "Binding: bound scope does not implement setValue" ) ; this . _widget_property_changed_listener = widget . onPropertyChanged ( this . _property_name , this . onWidgetPropertyChanged , this ) ; }
Create Binding instance. Refresh widget's property value
@param {_cBinding} config
@param {Lava.widget.Standard} widget
Create Binding instance . Refresh widget s property value