mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Menu: Remove ability to pass a function as the position option.
This commit is contained in:
5
ui/jquery.ui.menu.js
vendored
5
ui/jquery.ui.menu.js
vendored
@@ -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" ) )
|
||||
|
||||
Reference in New Issue
Block a user