Skip to content
Permalink
Browse files

Button: no longer calls _resetButton() after changing the disabled op…

…tion. Fixed #6242 - Button .enable() strange behavior on Webkit (Google Chrome, Safari)
  • Loading branch information...
dcneiner committed May 12, 2011
1 parent c89bbc1 commit 8df834f68c4337cb6d128360c76a4621f050bd60
Showing with 2 additions and 0 deletions.
  1. +2 −0 ui/jquery.ui.button.js
@@ -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();
},

0 comments on commit 8df834f

Please sign in to comment.
You can’t perform that action at this time.