]> source.dussan.org Git - jquery-ui.git/commitdiff
Button: Fix call to `._toggleClass()`
authorScott González <scott.gonzalez@gmail.com>
Mon, 26 Oct 2015 20:58:46 +0000 (16:58 -0400)
committerScott González <scott.gonzalez@gmail.com>
Mon, 26 Oct 2015 20:58:49 +0000 (16:58 -0400)
ui/widgets/button.js

index 2362a3b2296bf1a721a4ce1108080123f74866b2..50da9f9e22ec972f7529fe20f55507bfdfa57388 100644 (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();
                }