diff options
author | Felix Nagel <info@felixnagel.com> | 2011-02-17 01:23:02 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2011-02-17 01:23:02 +0100 |
commit | bf6fc206653763ae159f276b06cc1eddd059a98c (patch) | |
tree | 68475c23c295073381f8a7be9707603d7ca587fd | |
parent | 14756d95d29d3bbc11616a71957faac84ed3bb07 (diff) | |
download | jquery-ui-bf6fc206653763ae159f276b06cc1eddd059a98c.tar.gz jquery-ui-bf6fc206653763ae159f276b06cc1eddd059a98c.zip |
fixed: removed useless _refreshPosition, thx to juzna, see https://github.com/fnagel/jquery-ui/issues/#issue/76
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index bc875145a..6df51df9a 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -492,9 +492,9 @@ $.widget("ui.selectmenu", { open: function(event) { var self = this; - var disabledStatus = this.newelement.attr("aria-disabled"); - if ( disabledStatus != 'true' ) { - this._refreshPosition(); + if ( this.newelement.attr("aria-disabled") != 'true' ) { + // TODO: seems to be useless + // this._refreshPosition(); this._closeOthers(event); this.newelement .addClass('ui-state-active'); @@ -678,6 +678,7 @@ $.widget("ui.selectmenu", { _refreshPosition: function() { var o = this.options; + console.log("_refreshPosition"); // if its a native pop-up we need to calculate the position of the selected li if (o.style == "popup" && !o.positionOptions.offset) { var selected = this._selectedOptionLi(); |