Skip to content
Permalink
Browse files

Menu: Added close on click outside using technique from popup

  • Loading branch information...
kborchers authored and jzaefferer committed Jul 10, 2011
1 parent 163d867 commit 9f5050ee063ed4c9e6191fc58ef151254cf54e76
Showing with 8 additions and 0 deletions.
  1. +8 −0 ui/jquery.ui.menu.js
@@ -170,6 +170,14 @@ $.widget( "ui.menu", {
}
}
});

this._bind( document, {
click: function( event ) {
if ( !$( event.target ).closest( ".ui-menu" ).length ) {
this.closeAll();
}
}
});
},

_destroy: function() {

0 comments on commit 9f5050e

Please sign in to comment.
You can’t perform that action at this time.