diff options
author | kborchers <kris.borchers@gmail.com> | 2012-04-14 16:00:19 -0400 |
---|---|---|
committer | kborchers <kris.borchers@gmail.com> | 2012-04-14 16:00:19 -0400 |
commit | e2a6cdd5256e0befe8f75590499d501141a46463 (patch) | |
tree | ca60db5caa3279088972b107267c3bb1384bb1d5 /ui/jquery.ui.menu.js | |
parent | 26d6952bd2b81de2ad2adb0bb77c1be6f2d717c2 (diff) | |
download | jquery-ui-e2a6cdd5256e0befe8f75590499d501141a46463.tar.gz jquery-ui-e2a6cdd5256e0befe8f75590499d501141a46463.zip |
Menu: Check that the event object is defined before checking type
Diffstat (limited to 'ui/jquery.ui.menu.js')
-rw-r--r-- | ui/jquery.ui.menu.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index 01b7d0992..5e6b335ba 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/jquery.ui.menu.js @@ -294,7 +294,7 @@ $.widget( "ui.menu", { focus: function( event, item ) { var nested, borderTop, paddingTop, offset, scroll, elementHeight, itemHeight; - this.blur( event, event.type == "focus" ); + this.blur( event, event && event.type == "focus" ); if ( this._hasScroll() ) { borderTop = parseFloat( $.css( this.activeMenu[0], "borderTopWidth" ) ) || 0; |