Skip to content

Commit 1f94e9b

Browse files
committed
Button: Update classes option to use empty string instead of null
1 parent 6f76bb8 commit 1f94e9b

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

tests/unit/button/button_common.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ TestHelpers.commonWidgetTests( "button", {
22
defaults: {
33
classes: {
44
"ui-button": "ui-corner-all",
5-
"ui-button-text": null,
6-
"ui-button-icons-only": null,
7-
"ui-button-icon-only": null,
8-
"ui-button-text-icons": null,
9-
"ui-button-text-icon-primary": null,
10-
"ui-button-text-icon-secondary": null,
11-
"ui-button-text-only": null
5+
"ui-button-text": "",
6+
"ui-button-icons-only": "",
7+
"ui-button-icon-only": "",
8+
"ui-button-text-icons": "",
9+
"ui-button-text-icon-primary": "",
10+
"ui-button-text-icon-secondary": "",
11+
"ui-button-text-only": ""
1212
},
1313
disabled: null,
1414
icons: {

ui/button.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ $.widget( "ui.button", {
5757
options: {
5858
classes: {
5959
"ui-button": "ui-corner-all",
60-
"ui-button-text": null,
61-
"ui-button-icons-only": null,
62-
"ui-button-icon-only": null,
63-
"ui-button-text-icons": null,
64-
"ui-button-text-icon-primary": null,
65-
"ui-button-text-icon-secondary": null,
66-
"ui-button-text-only": null
60+
"ui-button-text": "",
61+
"ui-button-icons-only": "",
62+
"ui-button-icon-only": "",
63+
"ui-button-text-icons": "",
64+
"ui-button-text-icon-primary": "",
65+
"ui-button-text-icon-secondary": "",
66+
"ui-button-text-only": ""
6767
},
6868
disabled: null,
6969
text: true,

0 commit comments

Comments
 (0)