File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ $.widget("ui.progressbar", {
1919
2020 var self = this ,
2121 options = this . options ,
22- id = ( new Date ( ) ) . getTime ( ) + Math . random ( ) ,
22+ id = ( ( new Date ( ) ) . getTime ( ) + Math . random ( ) ) ,
2323 text = options . text || '0%' ;
2424
2525 this . element . addClass ( "ui-progressbar" ) . width ( options . width ) ;
@@ -132,8 +132,8 @@ $.widget("ui.progressbar", {
132132 duration : interval ,
133133 easing : options . equation || this . identifier ,
134134 step : function ( step , b ) {
135- self . progress ( ( step / options . width ) * 100 ) ;
136135 var timestamp = new Date ( ) . getTime ( ) , elapsedTime = ( timestamp - b . startTime ) ;
136+ self . progress ( ( step / options . width ) * 100 ) ;
137137 options . interval = interval - elapsedTime ;
138138 } ,
139139 complete : function ( ) {
@@ -177,7 +177,7 @@ $.widget("ui.progressbar", {
177177 }
178178
179179 this . percentState = percentState > 100 ? 100 : percentState ;
180- this . pixelState = ( this . percentState / 100 ) * this . options . width ;
180+ this . pixelState = ( this . percentState / 100 ) * this . options . width ;
181181 this . bar . width ( this . pixelState ) ;
182182 this . textElement . width ( this . pixelState ) ;
183183
You can’t perform that action at this time.
0 commit comments