Skip to content

Commit 5d7e8b1

Browse files
committed
Button: Fix call to ._toggleClass()
1 parent 1fdc56d commit 5d7e8b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/widgets/button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ $.widget( "ui.button", {
238238

239239
// Make sure we can't end up with a button that has neither text nor icon
240240
if ( key === "showLabel" ) {
241-
this._toggleClass( this._classes( "ui-button-icon-only" ), null, !value );
241+
this._toggleClass( "ui-button-icon-only", null, !value );
242242
this._updateTooltip();
243243
}
244244

0 commit comments

Comments
 (0)