diff options
author | Felix Nagel <info@felixnagel.com> | 2012-11-12 23:28:24 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2012-11-12 23:28:24 +0100 |
commit | daec559c981a410089f3c0d310f6a5986142c9a5 (patch) | |
tree | 7fdb3fff84f70ef135af5f2ba0064f519db6d70a /ui/jquery.ui.progressbar.js | |
parent | 967e2b74b2e6f1a8e908f060369c3ef51f0cbd7e (diff) | |
parent | 902df84fce790178da78c5830498911a487d50cf (diff) | |
download | jquery-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.js | 14 |
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 ); |