src/sap.ui.core/src/sap/ui/core/util/DraftEnabledMockServer.js
function(oEvent) {
				var oXhr = oEvent.getParameter("oXhr");
				var oEntry = jQuery.sap.sjax({
					url: oXhr.url,
					dataType: "json"
				}).data.d;
				// navigate to draft nodes and delete nodes
				for (var i = 0; i < this._oDraftMetadata.draftNodes.length; i++) {
					for (var navprop in this._mEntitySets[this._oDraftMetadata.draftRootName].navprops) {
						if (this._mEntitySets[this._oDraftMetadata.draftRootName].navprops[navprop].to.entitySet === this._oDraftMetadata.draftNodes[i]) {
							var oResponse = jQuery.sap.sjax({
								url: oEntry[navprop].__deferred.uri,
								dataType: "json"
							});
							if (oResponse.data && oResponse.data.d && oResponse.data.d.results) {
								var oNode;
								for (var j = 0; j < oResponse.data.d.results.length; j++) {
									oNode = oResponse.data.d.results[j];
									jQuery.sap.sjax({
										url: oNode.__metadata.uri,
										type: "DELETE"
									});
								}
							}
						}
					}
				}
			}
function(oEvent) {
				var oXhr = oEvent.getParameter("oXhr");
				var oEntry = jQuery.sap.sjax({
					url: oXhr.url,
					dataType: "json"
				}).data.d;
				// navigate to draft nodes and delete nodes
				for (var i = 0; i < this._oDraftMetadata.draftNodes.length; i++) {
					for (var navprop in this._mEntitySets[this._oDraftMetadata.draftRootName].navprops) {
						if (this._mEntitySets[this._oDraftMetadata.draftRootName].navprops[navprop].to.entitySet === this._oDraftMetadata.draftNodes[i]) {
							var oResponse = jQuery.sap.sjax({
								url: oEntry[navprop].__deferred.uri,
								dataType: "json"
							});
							if (oResponse.data && oResponse.data.d && oResponse.data.d.results) {
								var oNode;
								for (var j = 0; j < oResponse.data.d.results.length; j++) {
									oNode = oResponse.data.d.results[j];
									jQuery.sap.sjax({
										url: oNode.__metadata.uri,
										type: "DELETE"
									});
								}
							}
						}
					}
				}
			}
function ( oEvent ) { var oXhr = oEvent . getParameter ( "oXhr" ) ; var oEntry = jQuery . sap . sjax ( { url : oXhr . url , dataType : "json" } ) . data . d ; // navigate to draft nodes and delete nodes for ( var i = 0 ; i < this . _oDraftMetadata . draftNodes . length ; i ++ ) { for ( var navprop in this . _mEntitySets [ this . _oDraftMetadata . draftRootName ] . navprops ) { if ( this . _mEntitySets [ this . _oDraftMetadata . draftRootName ] . navprops [ navprop ] . to . entitySet === this . _oDraftMetadata . draftNodes [ i ] ) { var oResponse = jQuery . sap . sjax ( { url : oEntry [ navprop ] . __deferred . uri , dataType : "json" } ) ; if ( oResponse . data && oResponse . data . d && oResponse . data . d . results ) { var oNode ; for ( var j = 0 ; j < oResponse . data . d . results . length ; j ++ ) { oNode = oResponse . data . d . results [ j ] ; jQuery . sap . sjax ( { url : oNode . __metadata . uri , type : "DELETE" } ) ; } } } } } }
callback function to update draft specific properties pre deletion
callback function to update draft specific properties pre deletion