this.watchInFlight = function(){ var now = null;   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){  this.inFlight.splice(x, 1); doLoad(tif.req, tif.http, tif.url, tif.query, tif.useCache); }else if (tif.startTime){  if(!now){ now = (new Date()).getTime(); } if(tif.startTime + (tif.req.timeoutSeconds * 1000) < now){  if(typeof tif.http.abort == "function"){ tif.http.abort(); }   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(){ var now=null; if(!dojo.hostenv._blockAsync&&!_60f._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){ this.inFlight.splice(x,1); doLoad(tif.req,tif.http,tif.url,tif.query,tif.useCache); }else{ if(tif.startTime){ if(!now){ now=(new Date()).getTime(); } if(tif.startTime+(tif.req.timeoutSeconds*1000)<now){ if(typeof tif.http.abort=="function"){ tif.http.abort(); } this.inFlight.splice(x,1); tif.req[(typeof tif.req.timeout=="function")?"timeout":"handle"]("timeout",null,tif.http,tif.req); } } } } catch(e){ try{ var _62c=new dojo.io.Error("XMLHttpTransport.watchInFlight Error: "+e); tif.req[(typeof tif.req.error=="function")?"error":"handle"]("error",_62c,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(){    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/90939f35f46f873d9b1f5c5f818ecf012711dc71/dojo.js/buggy/src/main/resources/org/apache/struts2/static/dojo/dojo.js