Skip to content
Permalink
Browse files

Checkboxradio: Fix invalid chars, remove unused var, add comment

  • Loading branch information...
jzaefferer authored and arschmitz committed Oct 6, 2015
1 parent dc2bede commit 2bf307313b9e40900193267bc2fb779b9ab24b5c
Showing with 3 additions and 2 deletions.
  1. +3 −2 ui/widgets/checkboxradio.js
@@ -59,6 +59,7 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {

labels = this.element.labels();

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

if ( !name ) {
return $( [] );
}``
}

return this.formParent.find( "[name='" + $.ui.escapeSelector( name ) + "']" ).filter( function() {
var form = $( this ).form();
return ( form.length ? form : $( "body" ) )[ 0 ] === formParent;

0 comments on commit 2bf3073

Please sign in to comment.
You can’t perform that action at this time.