src/sap.ui.rta/src/sap/ui/rta/ControlTreeModifier.js
function(sFragment, sChangeId, oView, oController) {
			var aControls = JsControlTreeModifier.instantiateFragment.apply(this, arguments);

			aControls.forEach(function(oControl) {
				this._saveUndoOperation("destroy", [oControl]);
			}.bind(this));
			return aControls;
		}
function(sFragment, sChangeId, oView, oController) {
			var aControls = JsControlTreeModifier.instantiateFragment.apply(this, arguments);

			aControls.forEach(function(oControl) {
				this._saveUndoOperation("destroy", [oControl]);
			}.bind(this));
			return aControls;
		}
function ( sFragment , sChangeId , oView , oController ) { var aControls = JsControlTreeModifier . instantiateFragment . apply ( this , arguments ) ; aControls . forEach ( function ( oControl ) { this . _saveUndoOperation ( "destroy" , [ oControl ] ) ; } . bind ( this ) ) ; return aControls ; }
When a fragment is instantiated in JS, a control is created.
This control has to be destroyed on undo
@override
When a fragment is instantiated in JS a control is created . This control has to be destroyed on undo