Skip to content

Commit e2a6cdd

Browse files
committed
Menu: Check that the event object is defined before checking type
1 parent 26d6952 commit e2a6cdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.menu.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ $.widget( "ui.menu", {
294294

295295
focus: function( event, item ) {
296296
var nested, borderTop, paddingTop, offset, scroll, elementHeight, itemHeight;
297-
this.blur( event, event.type == "focus" );
297+
this.blur( event, event && event.type == "focus" );
298298

299299
if ( this._hasScroll() ) {
300300
borderTop = parseFloat( $.css( this.activeMenu[0], "borderTopWidth" ) ) || 0;

0 commit comments

Comments
 (0)