mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Progressbar: Do not duplicate base _setOptions method
This commit is contained in:
parent
d6c6b7dc33
commit
11687e44dc
12
ui/jquery.ui.progressbar.js
vendored
12
ui/jquery.ui.progressbar.js
vendored
@ -79,16 +79,10 @@ $.widget( "ui.progressbar", {
|
||||
},
|
||||
|
||||
_setOptions: function( options ) {
|
||||
var key, val;
|
||||
var val = options.value;
|
||||
|
||||
for ( key in options ) {
|
||||
if ( key === "value" ) {
|
||||
// Store value to update last in case max is being updated at the same time
|
||||
val = options[ key ];
|
||||
} else {
|
||||
this._setOption( key, options[ key ] );
|
||||
}
|
||||
}
|
||||
delete options.value;
|
||||
this._super( options );
|
||||
|
||||
if ( val !== undefined ) {
|
||||
this._setOption( "value", val );
|
||||
|
Loading…
Reference in New Issue
Block a user