File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -183,21 +183,17 @@ $.widget( "ui.button", {
183
183
} ,
184
184
185
185
_determineButtonType : function ( ) {
186
-
186
+
187
187
if ( this . element . is ( ":checkbox" ) ) {
188
188
this . type = "checkbox" ;
189
+ } else if ( this . element . is ( ":radio" ) ) {
190
+ this . type = "radio" ;
191
+ } else if ( this . element . is ( "input" ) ) {
192
+ this . type = "input" ;
189
193
} else {
190
- if ( this . element . is ( ":radio" ) ) {
191
- this . type = "radio" ;
192
- } else {
193
- if ( this . element . is ( "input" ) ) {
194
- this . type = "input" ;
195
- } else {
196
- this . type = "button" ;
197
- }
198
- }
194
+ this . type = "button" ;
199
195
}
200
-
196
+
201
197
if ( this . type === "checkbox" || this . type === "radio" ) {
202
198
// we don't search against the document in case the element
203
199
// is disconnected from the DOM
You can’t perform that action at this time.
0 commit comments