Hides the menu for the menu item.

@method hideMenu
968409
function () {
        var self = this;

        if (self.menu) {
          self.menu.items().each(function (item) {
            if (item.hideMenu) {
              item.hideMenu();
            }
          });

          self.menu.hide();
          self.aria('expanded', false);
        }

        return self;
      }
581296
public function removeCachedMenu()
    {
        $menuTypeIds = $this->menu_items()->pluck('menu_type_id')->unique()->all();

        foreach ( $menuTypeIds as $menuTypeId ) {
            MenuHelper::clearCache($menuTypeId, app()->getLocale());
        }
    }
65084
function (menu, cmenu) {
            var className = cmenu.className;
            $.each(cmenu.theme.split(","), function (i, n) {
                className += ' ' + cmenu.themePrefix + n;
            });
//			var $t = $('<div style="background-color:#ffff00; xwidth:200px; height:200px"><table style="" cellspacing=0 cellpadding=0></table></div>').click(function(){cmenu.hide(); return false;}); // We wrap a table around it so width can be flexible
            var $t = $('<table style="" cellspacing="0" cellpadding="0"></table>').click(function () {
                cmenu.hide();
                return false;
            }); // We wrap a table around it so width can be flexible
            var $tr = $('<tr></tr>');
            var $td = $('<td></td>');
            var $div = cmenu._div = $('<div class="' + className + '"></div>');

            cmenu._div.hover(
                function () {
                    if (cmenu.closeTimer) {
                        clearTimeout(cmenu.closeTimer);
                        cmenu.closeTimer = null;
                    }
                },
                function () {
                    var myClass = cmenu;

                    function timerRelay() {
                        myClass.hide();
                    }

                    myClass.closeTimer = setTimeout(timerRelay, 500);
                }
            );

            // Each menu item is specified as either:
            //     title:function
            // or  title: { property:value ... }
            /*
             for (var i=0; i<menu.length; i++) {
             var m = menu[i];
             if (m==$.contextMenu.separator) {
             $div.append(cmenu.createSeparator());
             }
             else {
             for (var opt in menu[i]) {
             $div.append(cmenu.createMenuItem(opt,menu[i][opt])); // Extracted to method for extensibility
             }
             }
             }
             */
            for (var i = 0; i < menu.length; i++) {
                var m = menu[i];
                if (m === $.contextMenu.separator) {
                    $div.append(cmenu.createSeparator());
                }
                else {
                    $div.append(cmenu.createMenuItem(m)); // Extracted to method for extensibility
                }
            }
            if (cmenu.useIframe) {
                $td.append(cmenu.createIframe());
            }
            $t.append($tr.append($td.append($div)));
            return $t;
        }
504671
function () {
            var self = this, cur = self, last;
            do {
                // 沿着 menu，menuitem 链
                last = cur;
                cur = cur.get('parent');
            } while (cur && (cur.isMenuItem || cur.isMenu));
            return last;
        }
442371
function Menu() {
  ui.Emitter.call(this);
  this.items = {};
  this.el = $(html).hide().appendTo('body');
  this.el.hover(this.deselect.bind(this));
  $('html').click(this.hide.bind(this));
  this.on('show', this.bindKeyboardEvents.bind(this));
  this.on('hide', this.unbindKeyboardEvents.bind(this));
}
114986
function () {
		var c$ = this.$.menu.children;
		var c = c$[0];
		if (c) {
			//remove any applied movedClass
			if (this.movedClass && this.movedClass.length > 0 && c.hasClass(this.movedClass)) {
				c.removeClass(this.movedClass);
			}
			this.$.client.addChild(c);
			var p = this.$.client.hasNode();
			if (p && c.hasNode()) {
				var nextChild;
				var currIndex;
				for (var i = 0; i < this.$.client.children.length; i++) {
					var curr = this.$.client.children[i];
					if(curr.toolbarIndex !== undefined && curr.toolbarIndex != i) {
						nextChild = curr;
						currIndex = i;
						break;
					}
				}
				if (nextChild && nextChild.hasNode()) {
					c.insertNodeInParent(p, nextChild.node);
					var newChild = this.$.client.children.pop();
					this.$.client.children.splice(currIndex, 0, newChild);
				} else {
					c.appendNodeToParent(p);
				}
			}
			return true;
		}
	}
836869
function() {
        var element = this.element,
            node = this.node;

        // Clickout check
        if (!element && !node) {
            return;
        }

        this.fireEvent('hiding', [element, node]);

        element.conceal();

        node
            .aria('toggled', false)
            .removeClass('is-active');

        this.fireEvent('hidden', [element, node]);
    }
497493
function () {
        if (!_isCreatedPanelMenus.length) {
            return
        }
        _isCreatedPanelMenus.forEach(menu => {
            const panel = menu.panel || {}
            if (panel.hide) {
                panel.hide()
            }
        })
    }
2
function() {
        var options = this.options;

        if (options.hideOthers) {
            this.secondary.each(function() {
                var sidebar = $(this);

                if (sidebar.hasClass('is-expanded')) {
                    sidebar.toolkit('offCanvas', 'hide');
                }
            });
        }

        this.fireEvent('showing');

        this.container.addClass('move-' + this.opposite);

        this.element
            .reveal()
            .addClass('is-expanded')
            .aria('expanded', true);

        if (options.stopScroll) {
            $('body').addClass('no-scroll');
        }

        this.fireEvent('shown');
    }
1250469
function hide() {
    if (isVisible()) {
        var hideFinishCb = function () {
            WinJS.Utilities.addClass(splashElement, 'hidden');
            splashElement.style.opacity = 1;
            enableUserInteraction();
            exitFullScreen();
        }

        // Color reversion before fading is over looks better:
        revertTitleBarColor();

        // https://issues.apache.org/jira/browse/CB-11751
        // This can occur when we directly replace whole document.body f.e. in a router.
        // Note that you should disable the splashscreen in this case or update a container element instead.
        if (document.getElementById(splashElement.id) == null) {
            hideFinishCb();
            return;
        }

        if (fadeSplashScreen) {
            fadeOut(splashElement, fadeSplashScreenDuration, hideFinishCb);
        } else {
            hideFinishCb();
        }
    }
}
420163
public void hide () {
		hide(sequence(Actions.fadeOut(FADE_TIME, Interpolation.fade), Actions.removeListener(ignoreTouchDown, true),
				Actions.removeActor()));
	}
1167326
function () {
            var documentContainer = document.querySelector('.document-container');
            if (documentContainer.classList.contains('backdrop-hidden')) {
                documentContainer.classList.remove('backdrop-hidden');
                documentContainer.style.display = 'none';
            }
            if (this.classList.contains('chart-hidden')) {
                this.classList.remove('chart-hidden');
                this.style.display = 'none';
            }
        }
298291
function(index) {
        this.items
            .removeClass('is-active')
            .aria('hidden', true)
            .slice(index, index + this.options.itemsToShow)
                .addClass('is-active')
                .aria('hidden', false);
    }
151164
function() {
        this.fireEvent('hiding');

        if (this.shadow) {
            this.shadow.val('');
        }

        this.input.aria('expanded', false);
        this.element.conceal();

        this.fireEvent('hidden');
    }
110130
function() {
        this.fireEvent('hiding');

        this.container.removeClass('move-' + this.opposite);

        this.element
            .conceal()
            .removeClass('is-expanded')
            .aria('expanded', false);

        if (this.options.stopScroll) {
            $('body').removeClass('no-scroll');
        }

        this.fireEvent('hidden');
    }
1182321
function() {
        var options = this.options,
            node = this.node,
            element = this.loadElement(node);

        // Only position if the menu has children
        if (!element.children().length) {
            return;
        }

        this.fireEvent('showing');

        var height = element.outerHeight(),
            coords = node.offset(),
            x = coords.left + options.xOffset,
            y = coords.top + options.yOffset + node.outerHeight(),
            windowScroll = $(window).height(),
            dir = 'left';

        // If menu goes below half page, position it above
        if (y > (windowScroll / 2)) {
            y = coords.top - options.yOffset - height;
        }

        // Change position for RTL
        if (Toolkit.isRTL) {
            x = $(window).width() - coords.left - node.outerWidth();
            dir = 'right';
        }

        element
            .css('top', y)
            .css(dir, x)
            .reveal();

        this.fireEvent('shown');
    }
1247425
def _hide(self):
        """"""
        self._icon.set_visible(False)
        self._icon.disconnect(self._conn_left)
        self._icon.disconnect(self._conn_right)
        self._conn_left = None
        self._conn_right = None