]> source.dussan.org Git - jquery-ui.git/commitdiff
fixed: removed useless _refreshPosition, thx to juzna, see https://github.com/fnagel...
authorFelix Nagel <info@felixnagel.com>
Thu, 17 Feb 2011 00:23:02 +0000 (01:23 +0100)
committerFelix Nagel <info@felixnagel.com>
Thu, 17 Feb 2011 00:23:02 +0000 (01:23 +0100)
ui/jquery.ui.selectmenu.js

index bc875145ae2bbd029482355a0b40624e427d214e..6df51df9a9545ad2affa1513c5ef1a78484267e2 100644 (file)
@@ -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();