var _b7=this.getXmlhttpObject(); function isDocumentOk(_b8){ var _b9=_b8["status"]; return Boolean((!_b9)||((200<=_b9)&&(300>_b9))||(_b9==304)); } if(_b5){ var _ba=this,_bb=null,gbl=dojo.global(); var xhr=dojo.evalObjPath("dojo.io.XMLHTTPTransport"); _b7.onreadystatechange=function(){ if(_bb){ gbl.clearTimeout(_bb); _bb=null; } if(_ba._blockAsync||(xhr&&xhr._blockAsync)){ _bb=gbl.setTimeout(function(){ _b7.onreadystatechange.apply(this); },10); }else{ if(4==_b7.readyState){ if(isDocumentOk(_b7)){ _b5(_b7.responseText); } } } }; } _b7.open("GET",uri,_b5?true:false); try{ _b7.send(null); if(_b5){ return null; } if(!isDocumentOk(_b7)){ var err=Error("Unable to load "+uri+" status:"+_b7.status); err.status=_b7.status; err.responseText=_b7.responseText; throw err; } } catch(e){ this._blockAsync=false; if((_b6)&&(!_b5)){ return null; }else{ throw e; } } this._blockAsync=false; return _b7.responseText; }; 
dojo.hostenv.getText = function(uri, async_cb, fail_ok){  // need to block async callbacks from snatching this thread as the result  // of an async callback might call another sync XHR, this hangs khtml forever  // hostenv._blockAsync must also be checked in BrowserIO's watchInFlight()  // NOTE: must be declared before scope switches ie. this.getXmlhttpObject()  if(!async_cb){ this._blockAsync = true; }  var http = this.getXmlhttpObject();  function isDocumentOk(http){    var stat = http["status"];    // allow a 304 use cache, needed in konq (is this compliant with the http spec?)    return Boolean((!stat)||((200 <= stat)&&(300 > stat))||(stat==304));  }  if(async_cb){    var _this = this, timer = null, gbl = dojo.global();    var xhr = dojo.evalObjPath("dojo.io.XMLHTTPTransport");    http.onreadystatechange = function(){      if(timer){ gbl.clearTimeout(timer); timer = null; }      if(_this._blockAsync || (xhr && xhr._blockAsync)){        timer = gbl.setTimeout(function () { http.onreadystatechange.apply(this); }, 10);      }else{        if(4==http.readyState){          if(isDocumentOk(http)){            // dojo.debug("LOADED URI: "+uri);            async_cb(http.responseText);          }        }      }    }  }  http.open('GET', uri, async_cb ? true : false);  try{    http.send(null);    if(async_cb){      return null;    }    if(!isDocumentOk(http)){      var err = Error("Unable to load "+uri+" status:"+ http.status);      err.status = http.status;      err.responseText = http.responseText;      throw err;    }  }catch(e){    this._blockAsync = false;    if((fail_ok)&&(!async_cb)){      return null;    }else{      throw e;    }  }  this._blockAsync = false;  return http.responseText;}
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