@@ -134,7 +134,7 @@ $.widget( "ui.accordion", {
134134 // clean up headers
135135 this . headers
136136 . 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" )
138138 . removeAttr ( "role" )
139139 . removeAttr ( "aria-expanded" )
140140 . removeAttr ( "aria-selected" )
@@ -145,7 +145,7 @@ $.widget( "ui.accordion", {
145145 var contents = this . headers . next ( )
146146 . css ( "display" , "" )
147147 . 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" ) ;
149149 if ( this . options . heightStyle !== "content" ) {
150150 this . element . css ( "height" , this . originalHeight ) ;
151151 contents . css ( "height" , "" ) ;
@@ -185,9 +185,7 @@ $.widget( "ui.accordion", {
185185 // so we need to add the disabled class to the headers and panels
186186 if ( key === "disabled" ) {
187187 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 ) ;
191189 }
192190 } ,
193191
0 commit comments