@@ -48,7 +48,7 @@ $.widget( "ui.checkboxradio", {
4848 icon : null
4949 } ,
5050
51- _getCreateOptions : function ( ) {
51+ _getCreateOptions : function ( ) {
5252 var label ,
5353 isDisabled = this . element . prop ( "disabled" ) ,
5454 options = { } ;
@@ -130,7 +130,7 @@ $.widget( "ui.checkboxradio", {
130130 this . label = $ ( this . element [ 0 ] . labels ) ;
131131 } else {
132132
133- // we don't search against the document in case the element
133+ // We don't search against the document in case the element
134134 // is disconnected from the DOM
135135 ancestor = this . element . parents ( ) . last ( ) ;
136136 labelSelector = "label[for='" + this . element . attr ( "id" ) + "']" ;
@@ -172,8 +172,9 @@ $.widget( "ui.checkboxradio", {
172172 } ,
173173
174174 _destroy : function ( ) {
175- this . label . removeClass ( "ui-button ui-corner-all ui-icon ui-icon-background ui-state-focus ui-icon-check " +
176- "ui-icon-blank ui-radio-label ui-checkboxlabel ui-radio-checked ui-checkbox-checked" ) ;
175+ this . label . removeClass ( "ui-button ui-corner-all ui-icon ui-icon-background" +
176+ " ui-state-focus ui-icon-check ui-icon-blank ui-radio-label ui-checkboxlabel" +
177+ " ui-radio-checked ui-checkbox-checked" ) ;
177178 this . element . removeClass ( "ui-helper-hidden-accessible" ) ;
178179 } ,
179180
@@ -212,13 +213,14 @@ $.widget( "ui.checkboxradio", {
212213 this . label . removeClass ( "ui-state-active ui-" + this . type + "-checked" ) ;
213214 }
214215 if ( this . options . label !== null ) {
215- this . label . contents ( ) . not ( this . label . children ( ) ) [ 0 ] . nodeValue = this . options . label ;
216+ this . label . contents ( ) . not ( this . label . children ( ) ) [ 0 ] . nodeValue = this . options . label ;
216217 }
217218 } ,
218219
219220 refresh : function ( ) {
220221
221222 this . _setClasses ( ) ;
223+
222224 //See #8237 & #8828
223225 var isDisabled = this . element . hasClass ( "ui-checkboxradio-disabled" ) ;
224226
0 commit comments