Skip to content

Commit dc68913

Browse files
committed
Menu: Remove ability to pass a function as the position option.
1 parent 3a7c1bc commit dc68913

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ui/jquery.ui.menu.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -422,10 +422,7 @@ $.widget( "ui.menu", {
422422
_open: function( submenu ) {
423423
var position = $.extend({
424424
of: this.active
425-
}, $.type( this.options.position ) === "function" ?
426-
this.options.position( this.active ) :
427-
this.options.position
428-
);
425+
}, this.options.position );
429426

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

0 commit comments

Comments
 (0)