src/sap.ui.dt/src/sap/ui/dt/ContextMenuControl.js
function (bExplicitClose) {
			if (this.getPopover()) {
				if (bExplicitClose) {
					this.getPopover(true).close();
					this.getPopover(false).close();
				}

				// deletes the overflow button if there is one
				if (this.getProperty("buttons").length > this.getProperty("maxButtonsDisplayed")) {
					this.setProperty("buttons", this.getProperty("buttons").splice(0, this.getProperty("buttons").length - 1));
					this.getFlexbox().removeItem(this.getButtons().length - 1);
				}
			}

			return this;
		}
function (bExplicitClose) {
			if (this.getPopover()) {
				if (bExplicitClose) {
					this.getPopover(true).close();
					this.getPopover(false).close();
				}

				// deletes the overflow button if there is one
				if (this.getProperty("buttons").length > this.getProperty("maxButtonsDisplayed")) {
					this.setProperty("buttons", this.getProperty("buttons").splice(0, this.getProperty("buttons").length - 1));
					this.getFlexbox().removeItem(this.getButtons().length - 1);
				}
			}

			return this;
		}
function ( bExplicitClose ) { if ( this . getPopover ( ) ) { if ( bExplicitClose ) { this . getPopover ( true ) . close ( ) ; this . getPopover ( false ) . close ( ) ; } // deletes the overflow button if there is one if ( this . getProperty ( "buttons" ) . length > this . getProperty ( "maxButtonsDisplayed" ) ) { this . setProperty ( "buttons" , this . getProperty ( "buttons" ) . splice ( 0 , this . getProperty ( "buttons" ) . length - 1 ) ) ; this . getFlexbox ( ) . removeItem ( this . getButtons ( ) . length - 1 ) ; } } return this ; }
Closes the ContextMenu.
@param {boolean} bExplicitClose true if the popover has to be closed explicitly from the contextMenu. Otherwhise the closing is handled by the popover itself
@return {sap.m.ContextMenu} Reference to this in order to allow method chaining
@public
Closes the ContextMenu .