aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/widgets/slider.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/ui/widgets/slider.js b/ui/widgets/slider.js
index 5c4f252d5..8b8a7292a 100644
--- a/ui/widgets/slider.js
+++ b/ui/widgets/slider.js
@@ -81,7 +81,6 @@ return $.widget( "ui.slider", $.ui.mouse, {
"ui-widget ui-widget-content" );
this._refresh();
- this._setOption( "disabled", this.options.disabled );
this._animateOff = false;
},
@@ -430,10 +429,6 @@ return $.widget( "ui.slider", $.ui.mouse, {
valsLength = this.options.values.length;
}
- if ( key === "disabled" ) {
- this._toggleClass( null, "ui-state-disabled", !!value );
- }
-
this._super( key, value );
switch ( key ) {
@@ -481,6 +476,12 @@ return $.widget( "ui.slider", $.ui.mouse, {
}
},
+ _setOptionDisabled: function( value ) {
+ this._super( value );
+
+ this._toggleClass( null, "ui-state-disabled", !!value );
+ },
+
//internal value getter
// _value() returns value trimmed by min and max, aligned by step
_value: function() {