diff options
author | TJ VanToll <tj.vantoll@gmail.com> | 2013-06-20 20:40:00 -0400 |
---|---|---|
committer | TJ VanToll <tj.vantoll@gmail.com> | 2013-06-20 20:40:00 -0400 |
commit | 670f650b99103bcea779f8ad0428e05cb7e37053 (patch) | |
tree | 917bd350eb48a4be780838839a5d2e01de6e7517 | |
parent | 628a1414853f52fa9e78b0e742b8c30068694ae9 (diff) | |
download | jquery-ui-670f650b99103bcea779f8ad0428e05cb7e37053.tar.gz jquery-ui-670f650b99103bcea779f8ad0428e05cb7e37053.zip |
Menu: Ensure an event was passed before checking its type. Fixes #9384 - Menu: _focus function forgets null check with doing a pattern match on event.type
-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 5e44e81c4..c0222629d 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/jquery.ui.menu.js @@ -389,7 +389,7 @@ $.widget( "ui.menu", { } nested = item.children( ".ui-menu" ); - if ( nested.length && ( /^mouse/.test( event.type ) ) ) { + if ( nested.length && event && ( /^mouse/.test( event.type ) ) ) { this._startOpening(nested); } this.activeMenu = item.parent(); |