From 11687e44dc311746f3776f86dff6a6f68c573c8c Mon Sep 17 00:00:00 2001 From: Kris Borchers Date: Sun, 11 Nov 2012 16:52:02 +0900 Subject: [PATCH] Progressbar: Do not duplicate base _setOptions method --- ui/jquery.ui.progressbar.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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; + 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 );