Progressbar - Source formatting

This commit is contained in:
Eduardo Lundgren 2008-09-20 11:11:11 +00:00
parent 3ccc4222a8
commit c784591d8c

View File

@ -19,7 +19,7 @@ $.widget("ui.progressbar", {
var self = this,
options = this.options,
id = (new Date()).getTime()+Math.random(),
id = ((new Date()).getTime() + Math.random()),
text = options.text || '0%';
this.element.addClass("ui-progressbar").width(options.width);
@ -132,8 +132,8 @@ $.widget("ui.progressbar", {
duration: interval,
easing: options.equation || this.identifier,
step: function(step, b) {
self.progress((step/options.width)*100);
var timestamp = new Date().getTime(), elapsedTime = (timestamp - b.startTime);
self.progress( (step/options.width) * 100 );
options.interval = interval - elapsedTime;
},
complete: function() {