aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.menu.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-07-10 11:52:09 -0400
committerScott González <scott.gonzalez@gmail.com>2012-07-10 11:52:09 -0400
commitdc689139ea22dc3341cc1da3df5c7b5f5e907627 (patch)
tree21c3496d9bf64108f80d791b91690cd5dc1a7f6b /ui/jquery.ui.menu.js
parent3a7c1bc07a025cb538d2f8b77fb32362a18ee1f0 (diff)
downloadjquery-ui-dc689139ea22dc3341cc1da3df5c7b5f5e907627.tar.gz
jquery-ui-dc689139ea22dc3341cc1da3df5c7b5f5e907627.zip
Menu: Remove ability to pass a function as the position option.
Diffstat (limited to 'ui/jquery.ui.menu.js')
-rw-r--r--ui/jquery.ui.menu.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js
index 52c421c7a..e04c48b66 100644
--- a/ui/jquery.ui.menu.js
+++ b/ui/jquery.ui.menu.js
@@ -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" ) )