src/sap.ui.rta/src/sap/ui/rta/ControlTreeModifier.js
function (oControl, sPropertyName, oPropertyValue) {
			var vOldValue;

			var oMetadata = oControl.getMetadata().getPropertyLikeSetting(sPropertyName);
			if (oMetadata) {
				var sPropertyGetter = oMetadata._sGetter;
				vOldValue = oControl[sPropertyGetter]();
			}

			var vReturnValue = JsControlTreeModifier.setProperty.apply(this, arguments);

			/* If the value changed, record the reversal as undo operation */
			if (vOldValue !== oPropertyValue){
				this._saveUndoOperation("setProperty", [oControl, sPropertyName, vOldValue]);
			}

			return vReturnValue;
		}
function (oControl, sPropertyName, oPropertyValue) {
			var vOldValue;

			var oMetadata = oControl.getMetadata().getPropertyLikeSetting(sPropertyName);
			if (oMetadata) {
				var sPropertyGetter = oMetadata._sGetter;
				vOldValue = oControl[sPropertyGetter]();
			}

			var vReturnValue = JsControlTreeModifier.setProperty.apply(this, arguments);

			/* If the value changed, record the reversal as undo operation */
			if (vOldValue !== oPropertyValue){
				this._saveUndoOperation("setProperty", [oControl, sPropertyName, vOldValue]);
			}

			return vReturnValue;
		}
function ( oControl , sPropertyName , oPropertyValue ) { var vOldValue ; var oMetadata = oControl . getMetadata ( ) . getPropertyLikeSetting ( sPropertyName ) ; if ( oMetadata ) { var sPropertyGetter = oMetadata . _sGetter ; vOldValue = oControl [ sPropertyGetter ] ( ) ; } var vReturnValue = JsControlTreeModifier . setProperty . apply ( this , arguments ) ; /* If the value changed, record the reversal as undo operation */ if ( vOldValue !== oPropertyValue ) { this . _saveUndoOperation ( "setProperty" , [ oControl , sPropertyName , vOldValue ] ) ; } return vReturnValue ; }
Record the previous value of the property in the undo operation
@override
Record the previous value of the property in the undo operation