Permalink
Browse files

Menu: Check that the event object is defined before checking type, in…

… conformance to revision e2a6cdd and in order to make Selectmenu work again
  • Loading branch information...
fnagel committed May 16, 2012
1 parent 31a38e9 commit 8fbdd7cc38cd3e2a504b314cca2b36bc740aa168
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.menu.js
View
@@ -330,7 +330,7 @@ $.widget( "ui.menu", {
// highlight active parent menu item, if any
this.active.parent().closest( ".ui-menu-item" ).children( "a:first" ).addClass( "ui-state-active" );
if ( event.type === "keydown" ) {
if ( event && event.type === "keydown" ) {
this._close();
} else {
this.timer = this._delay(function() {

0 comments on commit 8fbdd7c

Please sign in to comment.