From: Kris Borchers Date: Sun, 11 Nov 2012 07:52:02 +0000 (+0900) Subject: Progressbar: Do not duplicate base _setOptions method X-Git-Tag: 1.10.0-beta.1~176 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=11687e44dc311746f3776f86dff6a6f68c573c8c;p=jquery-ui.git Progressbar: Do not duplicate base _setOptions method --- diff --git a/ui/jquery.ui.progressbar.js b/ui/jquery.ui.progressbar.js index 5a7fd87d3..6c3d7dadd 100644 --- a/ui/jquery.ui.progressbar.js +++ b/ui/jquery.ui.progressbar.js @@ -79,16 +79,10 @@ $.widget( "ui.progressbar", { }, _setOptions: function( options ) { - var key, val; - - 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 ] ); - } - } + var val = options.value; + + delete options.value; + this._super( options ); if ( val !== undefined ) { this._setOption( "value", val );