clearTimeout(this.inFlightTimer); if(this.inFlight.length == 0){ this.inFlightTimer = null; return; } this.inFlightTimer = setTimeout("dojo.io.XMLHTTPTransport.watchInFlight();", 10); } 
 this.inFlight.splice(x, 1); tif.req[(typeof tif.req.timeout == "function") ? "timeout" : "handle"]("timeout", null, tif.http, tif.req); } } }catch(e){ try{ var errObj = new dojo.io.Error("XMLHttpTransport.watchInFlight Error: " + e); tif.req[(typeof tif.req.error == "function") ? "error" : "handle"]("error", errObj, tif.http, tif.req); }catch(e2){ dojo.debug("XMLHttpTransport error callback failed: " + e2); } } } }  clearTimeout(this.inFlightTimer); if(this.inFlight.length == 0){ this.inFlightTimer = null; return; } this.inFlightTimer = setTimeout("dojo.io.XMLHTTPTransport.watchInFlight();", 10); } 
	this.watchInFlight = function(){		//summary: internal method that checks each inflight XMLHttpRequest to see		//if it has completed or if the timeout situation applies.		var now = null;		// make sure sync calls stay thread safe, if this callback is called during a sync call		// and this results in another sync call before the first sync call ends the browser hangs		if(!dojo.hostenv._blockAsync && !_this._blockAsync){			for(var x=this.inFlight.length-1; x>=0; x--){				try{					var tif = this.inFlight[x];					if(!tif || tif.http._aborted || !tif.http.readyState){						this.inFlight.splice(x, 1); continue; 					}					if(4==tif.http.readyState){						// remove it so we can clean refs						this.inFlight.splice(x, 1);						doLoad(tif.req, tif.http, tif.url, tif.query, tif.useCache);					}else if (tif.startTime){						//See if this is a timeout case.						if(!now){							now = (new Date()).getTime();						}						if(tif.startTime + (tif.req.timeoutSeconds * 1000) < now){							//Stop the request.							if(typeof tif.http.abort == "function"){								tif.http.abort();							}									// remove it so we can clean refs							this.inFlight.splice(x, 1);							tif.req[(typeof tif.req.timeout == "function") ? "timeout" : "handle"]("timeout", null, tif.http, tif.req);						}					}				}catch(e){					try{						var errObj = new dojo.io.Error("XMLHttpTransport.watchInFlight Error: " + e);						tif.req[(typeof tif.req.error == "function") ? "error" : "handle"]("error", errObj, tif.http, tif.req);					}catch(e2){						dojo.debug("XMLHttpTransport error callback failed: " + e2);					}				}			}		}		clearTimeout(this.inFlightTimer);		if(this.inFlight.length == 0){			this.inFlightTimer = null;			return;		}		this.inFlightTimer = setTimeout("dojo.io.XMLHTTPTransport.watchInFlight();", 10);	}
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/2f1d2cb699c9d9329e8b782b0463156e211cb0f6/struts_dojo.js.uncompressed.js/buggy/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js.uncompressed.js