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