File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -227,17 +227,19 @@ return $.widget( "ui.spinner", {
227
227
// button bindings
228
228
this . buttons = uiSpinner . find ( "a" )
229
229
. attr ( "tabIndex" , - 1 )
230
- . button ( ) ;
230
+ . button ( {
231
+ classes : {
232
+ "ui-button" : ""
233
+ }
234
+ } ) ;
231
235
232
236
// Right now button does not support classes this is already updated in button PR
233
237
this . _removeClass ( this . buttons , "ui-corner-all" ) ;
234
238
235
239
this . _addClass ( this . buttons . first ( ) , "ui-spinner-button ui-spinner-up" ) ;
236
240
this . _addClass ( this . buttons . last ( ) , "ui-spinner-button ui-spinner-down" ) ;
237
- this . _addClass ( this . buttons . first ( ) . find ( ".ui-button-text span" ) , null ,
238
- "ui-icon " + this . options . icons . up ) ;
239
- this . _addClass ( this . buttons . last ( ) . find ( ".ui-button-text span" ) , null ,
240
- "ui-icon " + this . options . icons . down ) ;
241
+ this . buttons . first ( ) . button ( "option" , "icon" , this . options . icons . up ) ;
242
+ this . buttons . last ( ) . button ( "option" , "icon" , this . options . icons . down ) ;
241
243
242
244
// IE 6 doesn't understand height: 50% for the buttons
243
245
// unless the wrapper has an explicit height
You can’t perform that action at this time.
0 commit comments