rem: if (!batch) { dwr.engine._debug("null batch in dwr.engine._clearUp()", true); return; } if (batch.completed == "true") { dwr.engine._debug("Double complete", true); return; } 
add: if (!batch) { dwr.engine._debug("Warning: null batch in dwr.engine._clearUp()", true); return; } if (batch.completed == "true") { dwr.engine._debug("Warning: Double complete", true); return; } 
context: dwr.engine._clearUp = function(batch) {  if (!batch) { dwr.engine._debug("null batch in dwr.engine._clearUp()", true); return; }  if (batch.completed == "true") { dwr.engine._debug("Double complete", true); return; }  // IFrame tidyup  if (batch.div) batch.div.parentNode.removeChild(batch.div);  if (batch.iframe) {    // If this is a poll frame then stop comet polling    if (batch.iframe == dwr.engine._pollFrame) dwr.engine._pollFrame = null;    batch.iframe.parentNode.removeChild(batch.iframe);  }  if (batch.form) batch.form.parentNode.removeChild(batch.form);  // XHR tidyup: avoid IE handles increase  if (batch.req) {    // If this is a poll frame then stop comet polling    if (batch.req == dwr.engine._pollReq) dwr.engine._pollReq = null;    delete batch.req;  }  if (batch.postHooks) {    for (var i = 0; i < batch.postHooks.length; i++) {      batch.postHooks[i]();    }    batch.postHooks = null;  }  if (batch.map && batch.map.batchId) {    delete dwr.engine._batches[batch.map.batchId];    dwr.engine._batchesLength--;  }  batch.completed = true;  // 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 (dwr.engine._batchQueue.length != 0) {    var sendbatch = dwr.engine._batchQueue.shift();    dwr.engine._sendData(sendbatch);  }};
meta: 266	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/4fc75b1b1b006dff800797913f2060fd7649dc53/engine.js/buggy/java/org/directwebremoting/engine.js