aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.progressbar.js
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2012-11-12 23:28:24 +0100
committerFelix Nagel <info@felixnagel.com>2012-11-12 23:28:24 +0100
commitdaec559c981a410089f3c0d310f6a5986142c9a5 (patch)
tree7fdb3fff84f70ef135af5f2ba0064f519db6d70a /ui/jquery.ui.progressbar.js
parent967e2b74b2e6f1a8e908f060369c3ef51f0cbd7e (diff)
parent902df84fce790178da78c5830498911a487d50cf (diff)
downloadjquery-ui-daec559c981a410089f3c0d310f6a5986142c9a5.tar.gz
jquery-ui-daec559c981a410089f3c0d310f6a5986142c9a5.zip
Merge branch 'master' into selectmenu
Diffstat (limited to 'ui/jquery.ui.progressbar.js')
-rw-r--r--ui/jquery.ui.progressbar.js14
1 files changed, 4 insertions, 10 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;
-
- 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 );