aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets/menu.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/widgets/menu.js')
-rw-r--r--ui/widgets/menu.js5
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 );