Skip to content
Permalink
Browse files

Slider: Remove redundant handling of disabled option on create

Ref #9151
Ref gh-1599
  • Loading branch information
jzaefferer authored and scottgonzalez committed Sep 25, 2015
1 parent d2f6204 commit 897dc718c61fdfe3c40c9a8b24c89128bbfe13aa
Showing with 6 additions and 5 deletions.
  1. +6 −5 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() {

0 comments on commit 897dc71

Please sign in to comment.
You can’t perform that action at this time.