context: 	this.watchInFlight = function(){		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);	}
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/dojo.js.uncompressed.js/buggy/www/resources/dojo-ajax/dojo.js.uncompressed.js