mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
parent
5850a5c755
commit
12be35562a
@ -100,6 +100,7 @@ return $.widget( "ui.progressbar", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_setOptions: function( options ) {
|
_setOptions: function( options ) {
|
||||||
|
|
||||||
// Ensure "value" option is set after other values (like max)
|
// Ensure "value" option is set after other values (like max)
|
||||||
var value = options.value;
|
var value = options.value;
|
||||||
delete options.value;
|
delete options.value;
|
||||||
@ -112,6 +113,7 @@ return $.widget( "ui.progressbar", {
|
|||||||
|
|
||||||
_setOption: function( key, value ) {
|
_setOption: function( key, value ) {
|
||||||
if ( key === "max" ) {
|
if ( key === "max" ) {
|
||||||
|
|
||||||
// Don't allow a max less than min
|
// Don't allow a max less than min
|
||||||
value = Math.max( this.min, value );
|
value = Math.max( this.min, value );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user