Progressbar: Do not duplicate base _setOptions method

This commit is contained in:
Kris Borchers 2012-11-11 16:52:02 +09:00
parent d6c6b7dc33
commit 11687e44dc

View File

@ -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 );