Skip to content

Commit

Permalink
Menu: Remove ability to pass a function as the position option.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Jul 10, 2012
1 parent 3a7c1bc commit dc68913
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ui/jquery.ui.menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,10 +422,7 @@ $.widget( "ui.menu", {
_open: function( submenu ) {
var position = $.extend({
of: this.active
}, $.type( this.options.position ) === "function" ?
this.options.position( this.active ) :
this.options.position
);
}, this.options.position );

clearTimeout( this.timer );
this.element.find( ".ui-menu" ).not( submenu.parents( ".ui-menu" ) )
Expand Down

0 comments on commit dc68913

Please sign in to comment.