]> source.dussan.org Git - jquery-ui.git/commitdiff
Button: no longer calls _resetButton() after changing the disabled option. Fixed... 256/head
authorDoug Neiner <doug@pixelgraphics.us>
Thu, 12 May 2011 05:16:06 +0000 (01:16 -0400)
committerDoug Neiner <doug@pixelgraphics.us>
Thu, 12 May 2011 05:16:06 +0000 (01:16 -0400)
ui/jquery.ui.button.js

index 031ac20912a08cd91137336b8cd6a9de4cc56d65..a120f884f8050a8898f61c4ac95f5c57eabc21c4 100644 (file)
@@ -185,6 +185,7 @@ $.widget( "ui.button", {
                // $.Widget.prototype._setOptionDisabled so it's easy to proxy and can
                // be overridden by individual plugins
                this._setOption( "disabled", options.disabled );
+               this._resetButton();
        },
 
        _determineButtonType: function() {
@@ -250,6 +251,7 @@ $.widget( "ui.button", {
                        } else {
                                this.element.removeAttr( "disabled" );
                        }
+                       return;
                }
                this._resetButton();
        },