Button: Fix call to ._toggleClass()

This commit is contained in:
Scott González 2015-10-26 16:58:46 -04:00
parent 1fdc56d1de
commit 5d7e8b1824

View File

@ -238,7 +238,7 @@ $.widget( "ui.button", {
// Make sure we can't end up with a button that has neither text nor icon
if ( key === "showLabel" ) {
this._toggleClass( this._classes( "ui-button-icon-only" ), null, !value );
this._toggleClass( "ui-button-icon-only", null, !value );
this._updateTooltip();
}