@@ -48,7 +48,7 @@ $.widget( "ui.checkboxradio", {
48
48
icon : null
49
49
} ,
50
50
51
- _getCreateOptions : function ( ) {
51
+ _getCreateOptions : function ( ) {
52
52
var label ,
53
53
isDisabled = this . element . prop ( "disabled" ) ,
54
54
options = { } ;
@@ -130,7 +130,7 @@ $.widget( "ui.checkboxradio", {
130
130
this . label = $ ( this . element [ 0 ] . labels ) ;
131
131
} else {
132
132
133
- // we don't search against the document in case the element
133
+ // We don't search against the document in case the element
134
134
// is disconnected from the DOM
135
135
ancestor = this . element . parents ( ) . last ( ) ;
136
136
labelSelector = "label[for='" + this . element . attr ( "id" ) + "']" ;
@@ -172,8 +172,9 @@ $.widget( "ui.checkboxradio", {
172
172
} ,
173
173
174
174
_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" ) ;
177
178
this . element . removeClass ( "ui-helper-hidden-accessible" ) ;
178
179
} ,
179
180
@@ -212,13 +213,14 @@ $.widget( "ui.checkboxradio", {
212
213
this . label . removeClass ( "ui-state-active ui-" + this . type + "-checked" ) ;
213
214
}
214
215
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 ;
216
217
}
217
218
} ,
218
219
219
220
refresh : function ( ) {
220
221
221
222
this . _setClasses ( ) ;
223
+
222
224
//See #8237 & #8828
223
225
var isDisabled = this . element . hasClass ( "ui-checkboxradio-disabled" ) ;
224
226
0 commit comments