Menu: Remove ability to pass a function as the position option.

This commit is contained in:
Scott González
2012-07-10 11:52:09 -04:00
parent 3a7c1bc07a
commit dc689139ea

View File

@@ -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" ) )