Skip to content

Commit 11687e4

Browse files
committed
Progressbar: Do not duplicate base _setOptions method
1 parent d6c6b7d commit 11687e4

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

ui/jquery.ui.progressbar.js

+4-10
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,10 @@ $.widget( "ui.progressbar", {
7979
},
8080

8181
_setOptions: function( options ) {
82-
var key, val;
83-
84-
for ( key in options ) {
85-
if ( key === "value" ) {
86-
// Store value to update last in case max is being updated at the same time
87-
val = options[ key ];
88-
} else {
89-
this._setOption( key, options[ key ] );
90-
}
91-
}
82+
var val = options.value;
83+
84+
delete options.value;
85+
this._super( options );
9286

9387
if ( val !== undefined ) {
9488
this._setOption( "value", val );

0 commit comments

Comments
 (0)