aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.menu.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-05-18 15:34:47 -0400
committerScott González <scott.gonzalez@gmail.com>2012-05-18 15:34:47 -0400
commit0adc6f5e17593d6bd42e6c0586eb85000883dec3 (patch)
treec63230462766a5fe70b5d19bb633d493062717a9 /ui/jquery.ui.menu.js
parentba1776a5133ae15d8db9eee86a4082fb017f65aa (diff)
downloadjquery-ui-0adc6f5e17593d6bd42e6c0586eb85000883dec3.tar.gz
jquery-ui-0adc6f5e17593d6bd42e6c0586eb85000883dec3.zip
Menu: Remove need to pass an event for next(), previous(), focus().
Diffstat (limited to 'ui/jquery.ui.menu.js')
-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 36f7e1de4..b3f323cec 100644
--- a/ui/jquery.ui.menu.js
+++ b/ui/jquery.ui.menu.js
@@ -340,7 +340,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() {