File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ $.widget( "ui.progressbar", {
36
36
this . valueDiv = $ ( "<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>" )
37
37
. appendTo ( this . element ) ;
38
38
39
+ this . oldValue = this . _value ( ) ;
39
40
this . _refreshValue ( ) ;
40
41
} ,
41
42
@@ -62,7 +63,6 @@ $.widget( "ui.progressbar", {
62
63
_setOption : function ( key , value ) {
63
64
if ( key === "value" ) {
64
65
this . options . value = value ;
65
-
66
66
this . _refreshValue ( ) ;
67
67
if ( this . _value ( ) === this . options . max ) {
68
68
this . _trigger ( "complete" ) ;
@@ -94,7 +94,7 @@ $.widget( "ui.progressbar", {
94
94
95
95
this . valueDiv . toggleClass ( "ui-progressbar-indeterminate" , isNaN ( value ) ) ;
96
96
97
- if ( this . oldValue !== value ) {
97
+ if ( this . oldValue !== value && ( ! isNaN ( this . oldValue ) || ! isNaN ( value ) ) ) {
98
98
this . oldValue = value ;
99
99
this . _trigger ( "change" ) ;
100
100
}
You can’t perform that action at this time.
0 commit comments