Button: no longer calls _resetButton() after changing the disabled option. Fixed #6242 - Button .enable() strange behavior on Webkit (Google Chrome, Safari)

(cherry picked from commit 8df834f68c)
This commit is contained in:
Doug Neiner 2011-05-12 01:16:06 -04:00 committed by Scott González
parent 15cb56726f
commit 3842fa9f94

View File

@ -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() {
@ -251,6 +252,7 @@ $.widget( "ui.button", {
} else {
this.element.removeAttr( "disabled" );
}
return;
}
this._resetButton();
},