aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.menu.js
diff options
context:
space:
mode:
authorkborchers <kris.borchers@gmail.com>2012-04-14 16:00:19 -0400
committerkborchers <kris.borchers@gmail.com>2012-04-14 16:00:19 -0400
commite2a6cdd5256e0befe8f75590499d501141a46463 (patch)
treeca60db5caa3279088972b107267c3bb1384bb1d5 /ui/jquery.ui.menu.js
parent26d6952bd2b81de2ad2adb0bb77c1be6f2d717c2 (diff)
downloadjquery-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.js2
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;