var percent; if(String(this.progress).indexOf("%") != -1){ percent = Math.min(parseFloat(this.progress)/100, 1); this.progress = percent * this.maximum; 
if(this.indeterminate){ dojo.addClass(this.domNode, "dijitProgressBarIndeterminate"); this.internalProgress.style.width = "100%"; dijit.util.wai.removeAttr(this.internalProgress, "waiState", "valuenow"); this._setLabels(""); 
		update: function(/*Object?*/attributes){			// summary: update progress information			//			// attributes: may provide progress and/or maximum properties on this parameter,			//	see attribute specs for details.			dojo.mixin(this, attributes||{});			var percent;			if(String(this.progress).indexOf("%") != -1){				percent = Math.min(parseFloat(this.progress)/100, 1);				this.progress = percent * this.maximum;			}else{				this.progress = Math.min(this.progress, this.maximum);				percent = this.progress / this.maximum;			}			if(!this._animationStopped){return;}			var text = this.report(percent);			this._setWaiValueNow(text);			this.internalProgress.style["width"] = (percent * 100) + "%";			dojo.forEach(["full", "empty"], function(name){				var labelNode = this[name+"Label"];				if(labelNode.firstChild){					labelNode.firstChild.nodeValue = text;				}else{					labelNode.appendChild(dojo.doc.createTextNode(text));				}// move this out of update, or perhaps replace with css or template layout?				var dim = dojo.contentBox(labelNode);				var labelBottom = (parseInt(dojo.getComputedStyle(this.domNode).height) - dim.h)/2;				labelNode.style.bottom = labelBottom + 'px';			}, this);			this.onChange();		},
3035	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3035/0a67c5f3f999f5d328720e5653c5261bae4c3fc3/ProgressBar.js/buggy/ProgressBar.js