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

		// avoid setting nulls to non-nullable fields.
		if (this._scope.isConnected()) {

			// turning off both of them to avoid infinite loop. From architect's point of view, better solution would be
			// to hang up developer's browser, but if it happens in production - it may have disastrous consequences.
			Lava.suspendListener(this._widget_property_changed_listener);
			this._scope_changed_listener && Lava.suspendListener(this._scope_changed_listener);
			this._widget.set(this._property_name, this._scope.getValue());
			Lava.resumeListener(this._widget_property_changed_listener);
			this._scope_changed_listener && Lava.resumeListener(this._scope_changed_listener);

		}

	}
function() {

		// avoid setting nulls to non-nullable fields.
		if (this._scope.isConnected()) {

			// turning off both of them to avoid infinite loop. From architect's point of view, better solution would be
			// to hang up developer's browser, but if it happens in production - it may have disastrous consequences.
			Lava.suspendListener(this._widget_property_changed_listener);
			this._scope_changed_listener && Lava.suspendListener(this._scope_changed_listener);
			this._widget.set(this._property_name, this._scope.getValue());
			Lava.resumeListener(this._widget_property_changed_listener);
			this._scope_changed_listener && Lava.resumeListener(this._scope_changed_listener);

		}

	}
function ( ) { // avoid setting nulls to non-nullable fields. if ( this . _scope . isConnected ( ) ) { // turning off both of them to avoid infinite loop. From architect's point of view, better solution would be // to hang up developer's browser, but if it happens in production - it may have disastrous consequences. Lava . suspendListener ( this . _widget_property_changed_listener ) ; this . _scope_changed_listener && Lava . suspendListener ( this . _scope_changed_listener ) ; this . _widget . set ( this . _property_name , this . _scope . getValue ( ) ) ; Lava . resumeListener ( this . _widget_property_changed_listener ) ; this . _scope_changed_listener && Lava . resumeListener ( this . _scope_changed_listener ) ; } }
Scope, which is bound to widget property, has changed. Refresh widget property value
Scope which is bound to widget property has changed . Refresh widget property value