Skip to content

Commit c784591

Browse files
Progressbar - Source formatting
1 parent 3ccc422 commit c784591

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ui/ui.progressbar.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)