Skip to content
Permalink
Browse files
Revert "Menu: Make check for click outside of menu a function which c…
…an be overridden. Fixes #8929 - Menu needs adjustement for use in Selectmenu"

This reverts commit 2a7896e.
  • Loading branch information
scottgonzalez committed Dec 16, 2013
1 parent e5e286e commit 2135008d2cf7c4a706ce641349db86eee7cf86ce
Showing 1 changed file with 1 addition and 5 deletions.
@@ -131,7 +131,7 @@ $.widget( "ui.menu", {
// Clicks outside of a menu collapse any open menus
this._on( this.document, {
click: function( event ) {
if ( this._closeOnDocumentClick( event ) ) {
if ( !$( event.target ).closest( ".ui-menu" ).length ) {
this.collapseAll( event );
}

@@ -498,10 +498,6 @@ $.widget( "ui.menu", {
.removeClass( "ui-state-active" );
},

_closeOnDocumentClick: function( event ) {
return !$( event.target ).closest( ".ui-menu" ).length;
},

collapse: function( event ) {
var newItem = this.active &&
this.active.parent().closest( ".ui-menu-item", this.element );

0 comments on commit 2135008

Please sign in to comment.