aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2015-10-26 16:58:46 -0400
committerScott González <scott.gonzalez@gmail.com>2015-10-26 16:58:49 -0400
commit5d7e8b1824416f013339f5ba55169f1bcd5bd46c (patch)
treedfd048822a246a28017b0077e89a98b2a73fe0d1 /ui
parent1fdc56d1de2ce1c54ec9f3bba7da145c8464b5fa (diff)
downloadjquery-ui-5d7e8b1824416f013339f5ba55169f1bcd5bd46c.tar.gz
jquery-ui-5d7e8b1824416f013339f5ba55169f1bcd5bd46c.zip
Button: Fix call to `._toggleClass()`
Diffstat (limited to 'ui')
-rw-r--r--ui/widgets/button.js2
1 files changed, 1 insertions, 1 deletions
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();
}