rem: if (batch.req.readyState == 4 && !batch.completed) { try { var reply = batch.req.responseText; 
add: if (batch.req.readyState == 4 && !batch.completed) { try { var reply = batch.req.responseText; if (reply != null && reply != "") { if (batch.req.status && batch.req.status == 200) eval(reply); else DWREngine._stateChangeError(batch, reply); } else { DWREngine._stateChangeError(batch, "No data received from server"); } } catch (ex) { DWREngine._stateChangeError(batch, ex); }  if (batch.div) batch.div.parentNode.removeChild(batch.div); if (batch.iframe) batch.iframe.parentNode.removeChild(batch.iframe); if (batch.form) batch.form.parentNode.removeChild(batch.form);  delete batch.req; 
context: DWREngine._stateChange = function(batch) {    if (batch.req.readyState == 4 && !batch.completed) {        try {            var reply = batch.req.responseText;            if (reply != null && reply != "") {                if (batch.req.status && batch.req.status == 200) {                    eval(reply);                }                else {                    DWREngine._stateChangeError(batch, reply);                }            }            else {                DWREngine._stateChangeError(batch, "No data received from server");            }        }        catch (ex) {            DWREngine._stateChangeError(batch, ex);        }        //  Clear up        if (batch.div) batch.div.parentNode.removeChild(batch.div);        if (batch.iframe) batch.iframe.parentNode.removeChild(batch.iframe);        if (batch.form) batch.form.parentNode.removeChild(batch.form);        // Avoid IE handles increase        delete batch.req;        if (batch.postHook) {            batch.postHook();        }        // TODO: There must be a better way???        for (var i = 0; i < DWREngine._batches.length; i++) {            if (DWREngine._batches[i] == batch) {                DWREngine._batches.splice(i, 1);                break;            }        }        // If there is anything on the queue waiting to go out, then send it.        // We don't need to check for ordered mode, here because when ordered mode        // gets turned off, we still process *waiting* batches in an ordered way.        if (DWREngine._batchQueue.length != 0) {            var sendbatch = DWREngine._batchQueue.shift();            DWREngine._sendData(sendbatch);            DWREngine._batches[DWREngine._batches.length] = sendbatch;        }        batch.completed = true;    }};
meta: 266	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/769a5807f342d8541951d74937d724ab38fcafe0/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js