aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2012-05-16 19:17:11 +0200
committerFelix Nagel <info@felixnagel.com>2012-05-16 19:18:42 +0200
commit8fbdd7cc38cd3e2a504b314cca2b36bc740aa168 (patch)
tree0eccc343c66f8ceb78af689d40f1cadf109eb3c7
parent31a38e972e7575d5aaa359df8670acc3a6a3672f (diff)
downloadjquery-ui-8fbdd7cc38cd3e2a504b314cca2b36bc740aa168.tar.gz
jquery-ui-8fbdd7cc38cd3e2a504b314cca2b36bc740aa168.zip
Menu: Check that the event object is defined before checking type, in conformance to revision e2a6cdd5256e0befe8f75590499d501141a46463 and in order to make Selectmenu work again
-rw-r--r--ui/jquery.ui.menu.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js
index 7704521fb..99df2e629 100644
--- a/ui/jquery.ui.menu.js
+++ b/ui/jquery.ui.menu.js
@@ -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() {