@@ -134,7 +134,7 @@ $.widget( "ui.accordion", {
134
134
// clean up headers
135
135
this . headers
136
136
. unbind ( ".accordion" )
137
- . removeClass ( "ui-accordion-header ui-accordion-header-active ui-accordion-disabled ui- helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top" )
137
+ . removeClass ( "ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top" )
138
138
. removeAttr ( "role" )
139
139
. removeAttr ( "aria-expanded" )
140
140
. removeAttr ( "aria-selected" )
@@ -145,7 +145,7 @@ $.widget( "ui.accordion", {
145
145
var contents = this . headers . next ( )
146
146
. css ( "display" , "" )
147
147
. removeAttr ( "role" )
148
- . removeClass ( "ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui- state-disabled" ) ;
148
+ . removeClass ( "ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled" ) ;
149
149
if ( this . options . heightStyle !== "content" ) {
150
150
this . element . css ( "height" , this . originalHeight ) ;
151
151
contents . css ( "height" , "" ) ;
@@ -185,9 +185,7 @@ $.widget( "ui.accordion", {
185
185
// so we need to add the disabled class to the headers and panels
186
186
if ( key === "disabled" ) {
187
187
this . headers . add ( this . headers . next ( ) )
188
- // TODO: why do we have an accordion-specific disabled class?
189
- // widget-specific classes seem to exist in a lot of plugins
190
- . toggleClass ( "ui-accordion-disabled ui-state-disabled" , ! ! value ) ;
188
+ . toggleClass ( "ui-state-disabled" , ! ! value ) ;
191
189
}
192
190
} ,
193
191
0 commit comments