src/sap.ui.rta/src/sap/ui/rta/ControlTreeModifier.js
function (oControl, bVisible) {
			var bOldVisible = this.getVisible(oControl);

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

			/* If the visibility changed, record the reversal as undo operation */
			if (bOldVisible !== this.getVisible(oControl)){
				this._saveUndoOperation("setVisible", [oControl, bOldVisible]);
			}

			return vReturnValue;
		}
function (oControl, bVisible) {
			var bOldVisible = this.getVisible(oControl);

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

			/* If the visibility changed, record the reversal as undo operation */
			if (bOldVisible !== this.getVisible(oControl)){
				this._saveUndoOperation("setVisible", [oControl, bOldVisible]);
			}

			return vReturnValue;
		}
function ( oControl , bVisible ) { var bOldVisible = this . getVisible ( oControl ) ; var vReturnValue = JsControlTreeModifier . setVisible . apply ( this , arguments ) ; /* If the visibility changed, record the reversal as undo operation */ if ( bOldVisible !== this . getVisible ( oControl ) ) { this . _saveUndoOperation ( "setVisible" , [ oControl , bOldVisible ] ) ; } return vReturnValue ; }
Execute the visibility change from parent and record the opposite visibility as undo operation
@override
Execute the visibility change from parent and record the opposite visibility as undo operation