]> source.dussan.org Git - jquery-ui.git/commitdiff
Menu: Remove ability to pass a function as the position option.
authorScott González <scott.gonzalez@gmail.com>
Tue, 10 Jul 2012 15:52:09 +0000 (11:52 -0400)
committerScott González <scott.gonzalez@gmail.com>
Tue, 10 Jul 2012 15:52:09 +0000 (11:52 -0400)
ui/jquery.ui.menu.js

index 52c421c7a86704de779e8368246c88695a161b2a..e04c48b66a9a9b1ce56d47b4bf4f4f1af962af72 100644 (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" ) )