rem: DWREngine._receivedBatch = batch; 
add: dwr.engine._receivedBatch = batch; 
context: DWREngine._stateChange = function(batch) {  var toEval;  try {    if (batch.completed || batch.req.readyState != 4) return;  }  catch (ex) {    DWREngine._handleWarning(null, ex);    // It's broken - clear up and forget this call    DWREngine._clearUp(batch);    return;  }  try {    var reply = batch.req.responseText;    reply = DWREngine._replyRewriteHandler(reply);    var status = batch.req.status; // causes Mozilla to except on page moves    if (reply == null || reply == "") {      DWREngine._handleWarning(null, { name:"dwrengine.missingData", message:"No data received from server" });    }    else if (status == 501) {      DWREngine._handleWarning(null, { name:"dwrengine.http.501", message:reply });    }    else {      var contentType = batch.req.getResponseHeader("Content-Type");      if (!contentType.match(/^text\/plain/) && !contentType.match(/^text\/javascript/)) {        if (DWREngine._textHtmlHandler && contentType.match(/^text\/html/)) {          DWREngine._textHtmlHandler();        }        else {          DWREngine._handleWarning(null, { name:"dwrengine.invalidMimeType", message:"Invalid content type: '" + contentType + "'" });        }      }      else {        // Skip checking the xhr.status because the above will do for most errors        // and because it causes Mozilla to error        // Comet replies might have already partially executed        if (batch.req == DWREngine._pollReq && batch.map.partialResponse == "true") {          DWREngine._receivedBatch = batch;          DWREngine._processCometResponse(reply);          DWREngine._receivedBatch = null;        }        else {          if (reply.search("//#DWR") == -1) {            DWREngine._handleWarning(null, { name:"dwrengine.invalidReply", message:"Invalid reply from server" });          }          else {            toEval = reply;          }        }      }    }  }  catch (ex) {    DWREngine._handleWarning(null, ex);  }  // Outside of the try/catch so errors propogate normally:  DWREngine._receivedBatch = batch;  if (toEval != null) eval(toEval);  DWREngine._receivedBatch = null;  DWREngine._clearUp(batch);};
meta: 266	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js