mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Slider: Remove redundant handling of disabled option on create
Ref #9151 Ref gh-1599
This commit is contained in:
parent
d2f62041f9
commit
897dc718c6
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user