src/sap.ui.dt/src/sap/ui/dt/ContextMenuControl.js
function (iIndex) {
			this.setProperty("buttons", this.getProperty("buttons").splice(iIndex, 1));
			this.getFlexbox(true).removeItem(iIndex);
			return this.getFlexbox(false).removeItem(iIndex);
		}
function (iIndex) {
			this.setProperty("buttons", this.getProperty("buttons").splice(iIndex, 1));
			this.getFlexbox(true).removeItem(iIndex);
			return this.getFlexbox(false).removeItem(iIndex);
		}
function ( iIndex ) { this . setProperty ( "buttons" , this . getProperty ( "buttons" ) . splice ( iIndex , 1 ) ) ; this . getFlexbox ( true ) . removeItem ( iIndex ) ; return this . getFlexbox ( false ) . removeItem ( iIndex ) ; }
Removes a button from the ContextMenu.
@param {int} iIndex the button to remove or its index or id
@return {sap.m.OverflowToolbarButton} The removed button or null
@public
Removes a button from the ContextMenu .