Skip to content

Commit

Permalink
Button: no longer calls _resetButton() after changing the disabled op…
Browse files Browse the repository at this point in the history
…tion. Fixed #6242 - Button .enable() strange behavior on Webkit (Google Chrome, Safari)

(cherry picked from commit 8df834f)
  • Loading branch information
dcneiner authored and scottgonzalez committed May 13, 2011
1 parent 15cb567 commit 3842fa9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/jquery.ui.button.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,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() {
Expand Down Expand Up @@ -251,6 +252,7 @@ $.widget( "ui.button", {
} else {
this.element.removeAttr( "disabled" );
}
return;
}
this._resetButton();
},
Expand Down

0 comments on commit 3842fa9

Please sign in to comment.