mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-05-13 03:01:39 -04:00
Menu: Check that the event object is defined before checking type
This commit is contained in:
2
ui/jquery.ui.menu.js
vendored
2
ui/jquery.ui.menu.js
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user