File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -268,11 +268,6 @@ $.widget( "ui.spinner", {
268
268
this . uiSpinner . height ( ) > 0 ) {
269
269
this . uiSpinner . height ( this . uiSpinner . height ( ) ) ;
270
270
}
271
-
272
- // Disable spinner if element was already disabled
273
- if ( this . options . disabled ) {
274
- this . disable ( ) ;
275
- }
276
271
} ,
277
272
278
273
_keydown : function ( event ) {
@@ -427,12 +422,14 @@ $.widget( "ui.spinner", {
427
422
}
428
423
429
424
this . _super ( key , value ) ;
425
+ } ,
430
426
431
- if ( key === "disabled" ) {
432
- this . _toggleClass ( this . uiSpinner , null , "ui-state-disabled" , ! ! value ) ;
433
- this . element . prop ( "disabled" , ! ! value ) ;
434
- this . buttons . button ( value ? "disable" : "enable" ) ;
435
- }
427
+ _setOptionDisabled : function ( value ) {
428
+ this . _super ( value ) ;
429
+
430
+ this . _toggleClass ( this . uiSpinner , null , "ui-state-disabled" , ! ! value ) ;
431
+ this . element . prop ( "disabled" , ! ! value ) ;
432
+ this . buttons . button ( value ? "disable" : "enable" ) ;
436
433
} ,
437
434
438
435
_setOptions : spinnerModifer ( function ( options ) {
You can’t perform that action at this time.
0 commit comments