From 5d7e8b1824416f013339f5ba55169f1bcd5bd46c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Mon, 26 Oct 2015 16:58:46 -0400 Subject: [PATCH] Button: Fix call to `._toggleClass()` --- ui/widgets/button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/widgets/button.js b/ui/widgets/button.js index 2362a3b22..50da9f9e2 100644 --- a/ui/widgets/button.js +++ b/ui/widgets/button.js @@ -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(); } -- 2.39.5