aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.menu.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2012-01-04 16:40:44 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2012-01-04 16:42:16 +0100
commit85348eeebed3521b5eea78d8930ee086c08cd62e (patch)
tree0a3a928b48a0fa74d08eab8951dbc4beaea9008b /ui/jquery.ui.menu.js
parentf0007ec74526979837c93be13bf181b3cf57c2ce (diff)
downloadjquery-ui-85348eeebed3521b5eea78d8930ee086c08cd62e.tar.gz
jquery-ui-85348eeebed3521b5eea78d8930ee086c08cd62e.zip
Menubar/Popup: Remove both to streamline the 1.9 release. Will revert this delete on the menubar branch, while development on master can continue without them.
Diffstat (limited to 'ui/jquery.ui.menu.js')
-rw-r--r--ui/jquery.ui.menu.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js
index 4fac02d2a..06b7ec440 100644
--- a/ui/jquery.ui.menu.js
+++ b/ui/jquery.ui.menu.js
@@ -214,24 +214,10 @@ $.widget( "ui.menu", {
}
}
});
-
- if ( this.options.trigger ) {
- this.element.popup({
- trigger: this.options.trigger,
- managed: true,
- focusPopup: $.proxy( function( event, ui ) {
- this.focus( event, this.element.children( ".ui-menu-item" ).first() );
- this.element.focus( 1 );
- }, this)
- });
- }
},
_destroy: function() {
//destroy (sub)menus
- if ( this.options.trigger ) {
- this.element.popup( "destroy" );
- }
this.element
.removeAttr( "aria-activedescendant" )
.find( ".ui-menu" )
@@ -533,10 +519,6 @@ $.widget( "ui.menu", {
item: this.active
};
this.collapseAll( event, true );
- if ( this.options.trigger ) {
- $( this.options.trigger ).focus( 1 );
- this.element.popup( "close" );
- }
this._trigger( "select", event, ui );
}
});