diff options
Diffstat (limited to 'ui/widgets/progressbar.js')
-rw-r--r-- | ui/widgets/progressbar.js | 2 |
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 ); } |