rem: var wrappingCallback = function() { if (xmlHttpObject.readyState == 4) { if (xmlHttpObject.status == 200) { var retry = false; if (typeof currentTest != 'undefined') { var command = currentTest._extractCommand(xmlHttpObject);  if (command.command == 'retryLast') { retry = true; 
add: var wrappingCallback; if (callback == null) { callback = function() {}; wrappingCallback = callback; } else { wrappingCallback = function() { if (xmlHttpObject.readyState == 4) { if (xmlHttpObject.status == 200) { var retry = false; if (typeof currentTest != 'undefined') { var command = currentTest._extractCommand(xmlHttpObject);  if (command.command == 'retryLast') { retry = true; } 
context:     var wrappingCallback = function() {        if (xmlHttpObject.readyState == 4) {            if (xmlHttpObject.status == 200) {                var retry = false;                if (typeof currentTest != 'undefined') {                    var command = currentTest._extractCommand(xmlHttpObject);                        //console.log("*********** " + command.command + " | " + command.target + " | " + command.value);                    if (command.command == 'retryLast') {                        retry = true;                    }                }                if (retry) {                    setTimeout(fnBind(function() {                        sendToRC(dataToBePosted, urlParms, callback, xmlHttpObject, async);                    }, this), 1000);                } else {                    callback();                }            }        }    }
meta: 3428	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3428/dbe982e89ab58bfbdcacd8bff39712cf2f735085/selenium-remoterunner.js/buggy/src/main/resources/core/scripts/selenium-remoterunner.js