diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2024-05-01 00:54:19 +0200 |
---|---|---|
committer | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2024-05-15 00:38:40 +0200 |
commit | bb49bd794bc8ea4238162725b518fb46234f3cf9 (patch) | |
tree | db7b6152daac9f2c6b5fd051ab5d3b7ec7382791 /ui/widgets/menu.js | |
parent | daa6fb55b35065c49c0ffc879c94627bbf85404c (diff) | |
download | jquery-ui-bb49bd794bc8ea4238162725b518fb46234f3cf9.tar.gz jquery-ui-bb49bd794bc8ea4238162725b518fb46234f3cf9.zip |
All: Drop support for IE & some other browsers (but mostly IE)
Closes gh-2249
Diffstat (limited to 'ui/widgets/menu.js')
-rw-r--r-- | ui/widgets/menu.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/widgets/menu.js b/ui/widgets/menu.js index 1ef4b8a3d..f3fdc82c8 100644 --- a/ui/widgets/menu.js +++ b/ui/widgets/menu.js @@ -26,7 +26,6 @@ "jquery", "../keycode", "../position", - "../safe-active-element", "../unique-id", "../version", "../widget" @@ -87,7 +86,7 @@ return $.widget( "ui.menu", { }, "click .ui-menu-item": function( event ) { var target = $( event.target ); - var active = $( $.ui.safeActiveElement( this.document[ 0 ] ) ); + var active = $( this.document[ 0 ].activeElement ); if ( !this.mouseHandled && target.not( ".ui-state-disabled" ).length ) { this.select( event ); @@ -131,7 +130,7 @@ return $.widget( "ui.menu", { this._delay( function() { var notContained = !$.contains( this.element[ 0 ], - $.ui.safeActiveElement( this.document[ 0 ] ) + this.document[ 0 ].activeElement ); if ( notContained ) { this.collapseAll( event ); |