aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets/progressbar.js
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2015-08-24 08:58:48 -0400
committerAlexander Schmitz <arschmitz@gmail.com>2015-09-11 08:29:08 -0400
commit12be35562af60ea25a6578005cf8b914345f26e3 (patch)
treed4fea77ee8f0c710eda45afe3a7858591ac22b6e /ui/widgets/progressbar.js
parent5850a5c755afa064cf3cb4c4998f299333921d63 (diff)
downloadjquery-ui-12be35562af60ea25a6578005cf8b914345f26e3.tar.gz
jquery-ui-12be35562af60ea25a6578005cf8b914345f26e3.zip
Progressbar: Style updates
Ref #14246
Diffstat (limited to 'ui/widgets/progressbar.js')
-rw-r--r--ui/widgets/progressbar.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/widgets/progressbar.js b/ui/widgets/progressbar.js
index 07ffaa97f..b2c7259ba 100644
--- a/ui/widgets/progressbar.js
+++ b/ui/widgets/progressbar.js
@@ -100,6 +100,7 @@ return $.widget( "ui.progressbar", {
},
_setOptions: function( options ) {
+
// Ensure "value" option is set after other values (like max)
var value = options.value;
delete options.value;
@@ -112,6 +113,7 @@ return $.widget( "ui.progressbar", {
_setOption: function( key, value ) {
if ( key === "max" ) {
+
// Don't allow a max less than min
value = Math.max( this.min, value );
}