Skip to content

Commit 2bf3073

Browse files
jzaeffererarschmitz
authored andcommitted
Checkboxradio: Fix invalid chars, remove unused var, add comment
1 parent dc2bede commit 2bf3073

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ui/widgets/checkboxradio.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
5959

6060
labels = this.element.labels();
6161

62+
// If there are multiple labels, use the last one
6263
this.label = $( labels[ labels.length - 1 ] );
6364
if ( !this.label.length ) {
6465
$.error( "No label found for checkboxradio widget" );
@@ -152,11 +153,11 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
152153
_getRadioGroup: function() {
153154
var name = this.element[ 0 ].name;
154155
var formParent = this.formParent[ 0 ];
155-
var radios = $( [] );
156156

157157
if ( !name ) {
158158
return $( [] );
159-
}``
159+
}
160+
160161
return this.formParent.find( "[name='" + $.ui.escapeSelector( name ) + "']" ).filter( function() {
161162
var form = $( this ).form();
162163
return ( form.length ? form : $( "body" ) )[ 0 ] === formParent;

0 commit comments

Comments
 (0)