rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
13
136k
meta
stringlengths
132
347
metadata = { callback:args.shift() };
callData = { callback:args.shift() };
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/631466a360278e355e59ce204f85a808eb10c8c5/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js
metadata = { callback:args.pop() };
callData = { callback:args.pop() };
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/631466a360278e355e59ce204f85a808eb10c8c5/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js
DWREngine._metadatas[id] = metadata;
DWREngine._callData[id] = callData;
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/631466a360278e355e59ce204f85a808eb10c8c5/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js
if (metadata != null) { for (var prop in metadata) { DWREngine._batch.metadata[prop] = metadata[prop];
if (callData != null) { for (var prop in callData) { DWREngine._batch.metadata[prop] = callData[prop];
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/631466a360278e355e59ce204f85a808eb10c8c5/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js
DWREngine._batch.map.httpSessionId = jSessionId;
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/d677e4124c04d556ecba1e3b446c82c28bea83f2/engine.js/clean/java/org/directwebremoting/engine.js
var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true;
var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } var args = []; for (var i = 0; i < arguments.length - 3; i++) { args[i] = arguments[i + 3]; } if (DWREngine._batch.path == null) { DWREngine._batch.path = path; } else { if (DWREngine._batch.path != path) { DWREngine....
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i <...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/769a5807f342d8541951d74937d724ab38fcafe0/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js
var args = []; for (var i = 0; i < arguments.length - 3; i++) { args[i] = arguments[i + 3];
} var params; var metadata; var firstArg = args[0]; var lastArg = args[args.length - 1]; if (typeof firstArg == "function") { metadata = { callback:args.shift() }; params = args; } else if (typeof lastArg == "function") { metadata = { callback:args.pop() }; params = args; } else if (typeof lastArg == "object" && las...
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i <...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/769a5807f342d8541951d74937d724ab38fcafe0/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js
if (DWREngine._batch.path == null) { DWREngine._batch.path = path;
metadata = { callback:args.shift() }; params = args; } else if (lastArg == null) { metadata = { callback:args.pop() }; params = args; } else { if (DWREngine._warningHandler) { DWREngine._warningHandler("Missing callback function or metadata object.");
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i <...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/769a5807f342d8541951d74937d724ab38fcafe0/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js
else { if (DWREngine._batch.path != path) { DWREngine._handleError("Can't batch requests to multiple DWR Servlets."); return; }
return; } var random = Math.floor(Math.random() * 10001); var id = (random + "_" + new Date().getTime()).toString(); DWREngine._metadatas[id] = metadata; var prefix = "c" + DWREngine._batch.map.callCount + "-"; if (metadata != null) { for (var prop in metadata) { DWREngine._batch.metadata[prop] = metadata[prop];
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i <...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/769a5807f342d8541951d74937d724ab38fcafe0/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js
var params; var metadata; var firstArg = args[0]; var lastArg = args[args.length - 1];
} DWREngine._batch.map[prefix + "scriptName"] = scriptName; DWREngine._batch.map[prefix + "methodName"] = methodName; DWREngine._batch.map[prefix + "id"] = id;
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i <...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/769a5807f342d8541951d74937d724ab38fcafe0/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js
if (typeof firstArg == "function") { metadata = { callback:args.shift() }; params = args; } else if (typeof lastArg == "function") { metadata = { callback:args.pop() }; params = args; } else if (typeof lastArg == "object" && lastArg.callback != null && typeof lastArg.callback == "function") { metadata = args.pop(); par...
DWREngine._addSerializeFunctions(); for (i = 0; i < params.length; i++) { DWREngine._serializeAll(DWREngine._batch, [], params[i], prefix + "param" + i); } DWREngine._removeSerializeFunctions();
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i <...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/769a5807f342d8541951d74937d724ab38fcafe0/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js
var random = Math.floor(Math.random() * 10001); var id = (random + "_" + new Date().getTime()).toString(); DWREngine._metadatas[id] = metadata; var prefix = "c" + DWREngine._batch.map.callCount + "-";
if (DWREngine._timeout && !DWREngine._batch.timeout) { DWREngine._batch.timeout = DWREngine._timeout; } if (DWREngine._errorHandler && !DWREngine._batch.metadata.errorHandler) { DWREngine._batch.metadata.errorHandler = DWREngine._errorHandler; }
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i <...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/769a5807f342d8541951d74937d724ab38fcafe0/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js
if (metadata != null) { for (var prop in metadata) { DWREngine._batch.metadata[prop] = metadata[prop]; } } DWREngine._batch.map[prefix + "scriptName"] = scriptName; DWREngine._batch.map[prefix + "methodName"] = methodName; DWREngine._batch.map[prefix + "id"] = id; DWREngine._addSerializeFunctions(); for (i = 0; i <...
DWREngine._batch.map.callCount++; if (singleShot) { DWREngine.endBatch(); }
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i <...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/769a5807f342d8541951d74937d724ab38fcafe0/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/e52d243cc5fdca0e5a21595e0187a99b102489e2/engine.js/clean/java/org/directwebremoting/engine.js
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/e52d243cc5fdca0e5a21595e0187a99b102489e2/engine.js/clean/java/org/directwebremoting/engine.js
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/e52d243cc5fdca0e5a21595e0187a99b102489e2/engine.js/clean/java/org/directwebremoting/engine.js
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/e52d243cc5fdca0e5a21595e0187a99b102489e2/engine.js/clean/java/org/directwebremoting/engine.js
if (singleShot) { DWREngine.endBatch(); }
if (singleShot) DWREngine.endBatch();
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/e52d243cc5fdca0e5a21595e0187a99b102489e2/engine.js/clean/java/org/directwebremoting/engine.js
if (callData.scriptTagBase != null) DWREngine._batch.scriptTagBase = callData.scriptTagBase;
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/7d06e4026ac1d042233ca9b2a53e01400fe468e8/engine.js/clean/java/org/directwebremoting/engine.js
if (callData.preHook) DWREngine._batch.preHooks.unshift(callData.preHook); if (callData.postHook) DWREngine._batch.postHooks.push(callData.postHook);
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/4b60feb51dda7728db59af5a77dcd95cb3cd6f1c/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js
if (callData.errorHandler != null) DWREngine._batch.errorHandler = callData.errorHandler; if (callData.warningHandler != null) DWREngine._batch.warningHandler = callData.warningHandler; if (callData.textHtmlHandler != null) DWREngine._batch.textHtmlHandler = callData.textHtmlHandler;
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/b9422248f33a6a74b02cd840e0dce818452726e2/engine.js/clean/java/org/directwebremoting/engine.js
params = args; } else if (typeof lastArg == "object" && lastArg.callback != null && typeof lastArg.callback == "function") { callData = args.pop();
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/7b7f33b46fbb6fd5ea66bc87b32cc4ed4b87cbc2/engine.js/clean/java/uk/ltd/getahead/dwr/engine.js
var cookies = document.cookie.split(';'); var jSessionId = ""; for (var i = 0; i < cookies.length; i++) { var cookie = cookies[i]; while (cookie.charAt(0) == ' ') cookie = cookie.substring(1, cookie.length); if (cookie.indexOf(DWREngine._sessionCookieName + "=") == 0) { jSessionId = cookie.substring(11, cookie.length)...
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/02cf6a8491a297cd2836209b1d6ed7e4cedd2b1b/engine.js/clean/java/org/directwebremoting/engine.js
DWREngine._batch.map.httpSessionId = jSessionId;
DWREngine._batch.map.httpSessionId = DWREngine._getJSessionId();
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/02cf6a8491a297cd2836209b1d6ed7e4cedd2b1b/engine.js/clean/java/org/directwebremoting/engine.js
exceptionHandler:overrides.exceptionHandler, callback:overrides.callback
exceptionHandler:callData.exceptionHandler, callback:callData.callback
dwr.engine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (dwr.engine._batch == null) { dwr.engine.beginBatch(); singleShot = true; } var batch = dwr.engine._batch; // To make them easy to manipulate we copy the arguments into an args array var args = []; for ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/ff32a83aaa4551fa4fa13ec95f2f262c15a459db/engine.js/buggy/java/org/directwebremoting/engine.js
DWREngine._handleError("Ambiguous nulls at start and end of parameter list. Which is the callback function?");
DWREngine._handleError("Ambiguous nulls at start and end of parameter list. Which is the callback function?");
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/d9ed61b6b2b1a6f2b83e7629588359165da1998a/engine.js/buggy/java/org/directwebremoting/engine.js
DWREngine._callData[id] = callData;
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/204a8dcf112f6bc2c3897fc4507d023e0e08dfd5/engine.js/clean/java/uk/ltd/getahead/dwr/engine.js
if (callData.preHook) DWREngine._batch.preHooks.unshift(callData.preHook); if (callData.postHook) DWREngine._batch.postHooks.push(callData.postHook); if (!callData.errorHandler) callData.errorHandler = DWREngine._errorHandler; if (!callData.warningHandler) callData.warningHandler = DWREngine._warningHandler; if (!callD...
if (callData.method != null) { DWREngine._batch.method = callData.method; delete callData.method; } if (callData.verb != null) { DWREngine._batch.verb = callData.verb; delete callData.verb; } if (callData.async != null) { DWREngine._batch.async = callData.async; delete callData.async; } if (callData.timeout != null) {...
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/204a8dcf112f6bc2c3897fc4507d023e0e08dfd5/engine.js/clean/java/uk/ltd/getahead/dwr/engine.js
if (callData != null) { for (var prop in callData) { DWREngine._batch.metadata[prop] = callData[prop]; }
if (callData.preHook != null) { DWREngine._batch.preHooks.unshift(callData.preHook); delete callData.preHook;
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/204a8dcf112f6bc2c3897fc4507d023e0e08dfd5/engine.js/clean/java/uk/ltd/getahead/dwr/engine.js
if (callData.postHook != null) { DWREngine._batch.postHooks.push(callData.postHook); delete callData.postHook; } if (callData.errorHandler == null) callData.errorHandler = DWREngine._errorHandler; if (callData.warningHandler == null) callData.warningHandler = DWREngine._warningHandler; DWREngine._handlersMap[id] = ...
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/204a8dcf112f6bc2c3897fc4507d023e0e08dfd5/engine.js/clean/java/uk/ltd/getahead/dwr/engine.js
DWREngine._execute = function(path, scriptName, methodName, vararg_params) {
dwr.engine._execute = function(path, scriptName, methodName, vararg_params) {
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js
if (DWREngine._batch == null) { DWREngine.beginBatch();
if (dwr.engine._batch == null) { dwr.engine.beginBatch();
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js
if (DWREngine._batch.path == null) { DWREngine._batch.path = path;
if (batch.path == null) { batch.path = path;
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js
if (DWREngine._batch.path != path) { DWREngine._handleError(null, { name:"dwrengine.multipleServlets", message:"Can't batch requests to multiple DWR Servlets." });
if (batch.path != path) { dwr.engine._handleError(null, { name:"dwr.engine.multipleServlets", message:"Can't batch requests to multiple DWR Servlets." });
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js
var callId = DWREngine._nextCallId++;
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js
if (callData.errorHandler == null) callData.errorHandler = DWREngine._errorHandler; if (callData.warningHandler == null) callData.warningHandler = DWREngine._warningHandler; if (callData.textHtmlHandler == null) callData.textHtmlHandler = DWREngine._textHtmlHandler;
if (callData.errorHandler == null) callData.errorHandler = dwr.engine._errorHandler; if (callData.warningHandler == null) callData.warningHandler = dwr.engine._warningHandler; if (callData.textHtmlHandler == null) callData.textHtmlHandler = dwr.engine._textHtmlHandler;
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js
for (var i = 0; i < DWREngine._propnames.length; i++) { propname = DWREngine._propnames[i]; if (callData[propname] != null) DWREngine._batch[propname] = callData[propname];
for (var i = 0; i < dwr.engine._propnames.length; i++) { propname = dwr.engine._propnames[i]; if (callData[propname] != null) batch[propname] = callData[propname];
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js
if (callData.preHook != null) DWREngine._batch.preHooks.unshift(callData.preHook); if (callData.postHook != null) DWREngine._batch.postHooks.push(callData.postHook); DWREngine._batch.callIds[callId] = {
if (callData.preHook != null) batch.preHooks.unshift(callData.preHook); if (callData.postHook != null) batch.postHooks.push(callData.postHook); batch.handlers[batch.map.callCount] = {
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js
if (typeof data != "function") DWREngine._batch.headers[propname] = "" + data;
if (typeof data != "function") batch.headers[propname] = "" + data;
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js
DWREngine._batch.map.httpSessionId = DWREngine._getJSessionId(); DWREngine._batch.map.scriptSessionId = DWREngine._getScriptSessionId(); DWREngine._batch.map.page = window.location.pathname; var prefix = "c" + DWREngine._batch.map.callCount + "-"; DWREngine._batch.map[prefix + "scriptName"] = scriptName; DWREngine._bat...
batch.map.httpSessionId = dwr.engine._getJSessionId(); batch.map.scriptSessionId = dwr.engine._getScriptSessionId(); batch.map.page = window.location.pathname; var prefix = "c" + batch.map.callCount + "-"; batch.map[prefix + "scriptName"] = scriptName; batch.map[prefix + "methodName"] = methodName; batch.map[prefix + "...
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js
if (typeof data != "function") DWREngine._batch.map[propname] = "" + data;
if (typeof data != "function") batch.map[propname] = "" + data;
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js
DWREngine._serializeAll(DWREngine._batch, [], args[i], prefix + "param" + i);
dwr.engine._serializeAll(batch, [], args[i], prefix + "param" + i);
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js
DWREngine._batch.map.callCount++; if (singleShot) DWREngine.endBatch();
batch.map.callCount++; if (singleShot) dwr.engine.endBatch();
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js
DWREngine._batch.map.httpSessionId = DWREngine._httpSessionId; DWREngine._batch.map.scriptSessionId = DWREngine._scriptSessionId;
DWREngine._batch.map.scriptSessionId = DWREngine._getScriptSessionId();
DWREngine._execute = function(path, scriptName, methodName, vararg_params) { var singleShot = false; if (DWREngine._batch == null) { DWREngine.beginBatch(); singleShot = true; } // To make them easy to manipulate we copy the arguments into an args array var args = []; for (var i = 0; i < arguments.length - ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/1e1e85001f6024db74774f0f4a99a08311172978/engine.js/buggy/java/org/directwebremoting/engine.js
DWREngine._finalize = function(batch) {
DWREngine._finalize = function(batch) {
DWREngine._finalize = function(batch){ DWREngine._removeNode(batch.div); DWREngine._removeNode(batch.iframe); DWREngine._removeNode(batch.form); // Avoid IE handles increase delete batch.req; if (DWREngine._postHook) { DWREngine._postHook(); } // TODO: There must be a better way??? ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/8402a249ca378792cd10adfab1b769c52ed0997b/engine.js/clean/java/uk/ltd/getahead/dwr/engine.js
DWREngine._finalize = function(batch){ DWREngine._removeNode(batch.div); DWREngine._removeNode(batch.iframe); DWREngine._removeNode(batch.form); // Avoid IE handles increase delete batch.req; if (DWREngine._postHook) { DWREngine._postHook(); } // TODO: There must be a better way??? ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/8402a249ca378792cd10adfab1b769c52ed0997b/engine.js/clean/java/uk/ltd/getahead/dwr/engine.js
if (DWREngine._postHook) {
if (DWREngine._postHook) {
DWREngine._finalize = function(batch){ DWREngine._removeNode(batch.div); DWREngine._removeNode(batch.iframe); DWREngine._removeNode(batch.form); // Avoid IE handles increase delete batch.req; if (DWREngine._postHook) { DWREngine._postHook(); } // TODO: There must be a better way??? ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/8402a249ca378792cd10adfab1b769c52ed0997b/engine.js/clean/java/uk/ltd/getahead/dwr/engine.js
DWREngine._finalize = function(batch){ DWREngine._removeNode(batch.div); DWREngine._removeNode(batch.iframe); DWREngine._removeNode(batch.form); // Avoid IE handles increase delete batch.req; if (DWREngine._postHook) { DWREngine._postHook(); } // TODO: There must be a better way??? ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/8402a249ca378792cd10adfab1b769c52ed0997b/engine.js/clean/java/uk/ltd/getahead/dwr/engine.js
for (var i = 0; i < DWREngine._batches.length; i++) { if (DWREngine._batches[i] == batch) {
for (var i = 0; i < DWREngine._batches.length; i++) { if (DWREngine._batches[i] == batch) {
DWREngine._finalize = function(batch){ DWREngine._removeNode(batch.div); DWREngine._removeNode(batch.iframe); DWREngine._removeNode(batch.form); // Avoid IE handles increase delete batch.req; if (DWREngine._postHook) { DWREngine._postHook(); } // TODO: There must be a better way??? ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/8402a249ca378792cd10adfab1b769c52ed0997b/engine.js/clean/java/uk/ltd/getahead/dwr/engine.js
DWREngine._finalize = function(batch){ DWREngine._removeNode(batch.div); DWREngine._removeNode(batch.iframe); DWREngine._removeNode(batch.form); // Avoid IE handles increase delete batch.req; if (DWREngine._postHook) { DWREngine._postHook(); } // TODO: There must be a better way??? ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/8402a249ca378792cd10adfab1b769c52ed0997b/engine.js/clean/java/uk/ltd/getahead/dwr/engine.js
if (DWREngine._batchQueue.length != 0) {
if (DWREngine._batchQueue.length != 0) {
DWREngine._finalize = function(batch){ DWREngine._removeNode(batch.div); DWREngine._removeNode(batch.iframe); DWREngine._removeNode(batch.form); // Avoid IE handles increase delete batch.req; if (DWREngine._postHook) { DWREngine._postHook(); } // TODO: There must be a better way??? ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/8402a249ca378792cd10adfab1b769c52ed0997b/engine.js/clean/java/uk/ltd/getahead/dwr/engine.js
var batch = DWREngine._batchQueue.pop();
var batch = DWREngine._batchQueue.shift();
DWREngine._finalize = function(batch){ DWREngine._removeNode(batch.div); DWREngine._removeNode(batch.iframe); DWREngine._removeNode(batch.form); if (DWREngine._postHook) { DWREngine._postHook(); } // TODO: There must be a better way??? for (var i = 0; i < DWREngine._batches.length; i++) ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/20841ada0bf6b043ccd7eb93984b02543bf8ca0a/engine.js/clean/java/uk/ltd/getahead/dwr/engine.js
var ioService = getService('component:
var ioService = getService('@mozilla.org/network/io-service;1',
_getChannel: function(request) { // Set up channel. var ioService = getService('component://netscape/network/io-service', 'nsIIOService'); var atomService = getService('component://netscape/atom-service', 'nsIAtomService'); var chann = ioService.newChannelFromURI(th...
5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/0257791053c2b38e1dfaf2ee11afae973e82e394/nsXmlRpcClient.js/buggy/extensions/xml-rpc/src/nsXmlRpcClient.js
var atomService = getService('component:
var atomService = getService('@mozilla.org/atom-service;1',
_getChannel: function(request) { // Set up channel. var ioService = getService('component://netscape/network/io-service', 'nsIIOService'); var atomService = getService('component://netscape/atom-service', 'nsIAtomService'); var chann = ioService.newChannelFromURI(th...
5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/0257791053c2b38e1dfaf2ee11afae973e82e394/nsXmlRpcClient.js/buggy/extensions/xml-rpc/src/nsXmlRpcClient.js
if (map[property] != null && typeof map[property] == "object") { var prefixClone = new Array();
if (dwr.util._isObject(map[property]) && !dwr.util._isArray(map[property])) { var prefixClone = [];
dwr.util._getDataProperties = function(map, prefixes) { for (var property in map) { if (map[property] != null && typeof map[property] == "object") { var prefixClone = new Array(); for (var i = 0; i < prefixes.length; i++) { prefixClone.push(prefixes[i]); } prefixClone.push(property); ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/ffdae4aa14332c0a3d3c0af2019809c4691bc9aa/util.js/buggy/java/org/directwebremoting/util.js
DWREngine._getJSessionId = function() {
dwr.engine._getJSessionId = function() {
DWREngine._getJSessionId = function() { var cookies = document.cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var cookie = cookies[i]; while (cookie.charAt(0) == ' ') cookie = cookie.substring(1, cookie.length); if (cookie.indexOf(DWREngine._sessionCookieName + "=") == 0) { return cookie...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js
if (cookie.indexOf(DWREngine._sessionCookieName + "=") == 0) {
if (cookie.indexOf(dwr.engine._sessionCookieName + "=") == 0) {
DWREngine._getJSessionId = function() { var cookies = document.cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var cookie = cookies[i]; while (cookie.charAt(0) == ' ') cookie = cookie.substring(1, cookie.length); if (cookie.indexOf(DWREngine._sessionCookieName + "=") == 0) { return cookie...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js
DWREngine._getObjectClassName = function(obj) {
dwr.engine._getObjectClassName = function(obj) {
DWREngine._getObjectClassName = function(obj) { // Try to find the classname by stringifying the object's constructor // and extract <class> from "function <class>". if (obj && obj.constructor && obj.constructor.toString) { var str = obj.constructor.toString(); var regexpmatch = str.match(/function\s+(\w+)/);...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js
for (var errorname in DWREngine._errorClasses) { if (obj.constructor == DWREngine._errorClasses[errorname]) return errorname;
for (var errorname in dwr.engine._errorClasses) { if (obj.constructor == dwr.engine._errorClasses[errorname]) return errorname;
DWREngine._getObjectClassName = function(obj) { // Try to find the classname by stringifying the object's constructor // and extract <class> from "function <class>". if (obj && obj.constructor && obj.constructor.toString) { var str = obj.constructor.toString(); var regexpmatch = str.match(/function\s+(\w+)/);...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js
DWREngine._getScriptSessionId = function() { if (DWREngine._scriptSessionId == null) { DWREngine._scriptSessionId = DWREngine._origScriptSessionId + Math.floor(Math.random() * 1000);
dwr.engine._getScriptSessionId = function() { if (dwr.engine._scriptSessionId == null) { dwr.engine._scriptSessionId = dwr.engine._origScriptSessionId + Math.floor(Math.random() * 1000);
DWREngine._getScriptSessionId = function() { if (DWREngine._scriptSessionId == null) { DWREngine._scriptSessionId = DWREngine._origScriptSessionId + Math.floor(Math.random() * 1000); } return DWREngine._scriptSessionId;};
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js
return DWREngine._scriptSessionId;
return dwr.engine._scriptSessionId;
DWREngine._getScriptSessionId = function() { if (DWREngine._scriptSessionId == null) { DWREngine._scriptSessionId = DWREngine._origScriptSessionId + Math.floor(Math.random() * 1000); } return DWREngine._scriptSessionId;};
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js
}
};
DWREngine._getTextFromCometIFrame = function() { var frameDocument; if (DWREngine._pollFrame.contentDocument) { frameDocument = DWREngine._pollFrame.contentDocument.defaultView.document; } else if (DWREngine._pollFrame.contentWindow) { frameDocument = DWREngine._pollFrame.contentWindow.document; } else { ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/e52d243cc5fdca0e5a21595e0187a99b102489e2/engine.js/clean/java/org/directwebremoting/engine.js
frameDocument = DWREngine._pollFrame.contentWindow.document
frameDocument = DWREngine._pollFrame.contentWindow.document;
DWREngine._getTextFromCometIFrame = function() { var frameDocument; if (DWREngine._pollFrame.contentDocument) { frameDocument = DWREngine._pollFrame.contentDocument.defaultView.document; } else if (DWREngine._pollFrame.contentWindow) { frameDocument = DWREngine._pollFrame.contentWindow.document } else { ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/e27fca0c979c4f571f91b864afe6733944fcdcc9/engine.js/buggy/java/org/directwebremoting/engine.js
DWREngine._getTextFromCometIFrame = function() {
dwr.engine._getTextFromCometIFrame = function() {
DWREngine._getTextFromCometIFrame = function() { var frameDocument; if (DWREngine._pollFrame.contentDocument) { frameDocument = DWREngine._pollFrame.contentDocument.defaultView.document; } else if (DWREngine._pollFrame.contentWindow) { frameDocument = DWREngine._pollFrame.contentWindow.document; } else { ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js
if (DWREngine._pollFrame.contentDocument) { frameDocument = DWREngine._pollFrame.contentDocument.defaultView.document;
if (dwr.engine._pollFrame.contentDocument) { frameDocument = dwr.engine._pollFrame.contentDocument.defaultView.document;
DWREngine._getTextFromCometIFrame = function() { var frameDocument; if (DWREngine._pollFrame.contentDocument) { frameDocument = DWREngine._pollFrame.contentDocument.defaultView.document; } else if (DWREngine._pollFrame.contentWindow) { frameDocument = DWREngine._pollFrame.contentWindow.document; } else { ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js
else if (DWREngine._pollFrame.contentWindow) { frameDocument = DWREngine._pollFrame.contentWindow.document;
else if (dwr.engine._pollFrame.contentWindow) { frameDocument = dwr.engine._pollFrame.contentWindow.document;
DWREngine._getTextFromCometIFrame = function() { var frameDocument; if (DWREngine._pollFrame.contentDocument) { frameDocument = DWREngine._pollFrame.contentDocument.defaultView.document; } else if (DWREngine._pollFrame.contentWindow) { frameDocument = DWREngine._pollFrame.contentWindow.document; } else { ...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js
else { alert("HE"+reason);}
DWREngine._handleError = function(reason, ex) { if (DWREngine._errorHandler) { DWREngine._errorHandler(reason, ex); } else { alert("HE"+reason);}};
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/7458af62295a834b900690563481c05c31b2bcd6/engine.js/clean/java/uk/ltd/getahead/dwr/engine.js
else { alert("HE"+reason);}
DWREngine._handleError = function(reason, ex) { if (DWREngine._errorHandler) { DWREngine._errorHandler(reason, ex); }};
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/631466a360278e355e59ce204f85a808eb10c8c5/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js
if (DWREngine._errorHandler) { DWREngine._errorHandler(reason); }
if (DWREngine._errorHandler) { DWREngine._errorHandler(reason); }
DWREngine._handleError = function(reason) { if (DWREngine._errorHandler) { DWREngine._errorHandler(reason); }};
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/769a5807f342d8541951d74937d724ab38fcafe0/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js
DWREngine._handleError = function(id, reason) { if (DWREngine._errorHandler) {
DWREngine._handleError = function(reason) { if (DWREngine._errorHandler) {
DWREngine._handleError = function(id, reason){ if (DWREngine._errorHandler) { DWREngine._errorHandler(reason); }};
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/8402a249ca378792cd10adfab1b769c52ed0997b/engine.js/clean/java/uk/ltd/getahead/dwr/engine.js
DWREngine._handleError = function(batch, ex) {
dwr.engine._handleError = function(batch, ex) {
DWREngine._handleError = function(batch, ex) { if (typeof ex == "string") ex = { name:"unknown", message:ex }; if (ex.message == null) ex.message = ""; if (ex.name == null) ex.name = "unknown"; if (batch && typeof batch.errorHandler == "function") batch.errorHandler(ex.message, ex); else if (DWREngine._errorHandle...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js
else if (DWREngine._errorHandler) DWREngine._errorHandler(ex.message, ex);
else if (dwr.engine._errorHandler) dwr.engine._errorHandler(ex.message, ex);
DWREngine._handleError = function(batch, ex) { if (typeof ex == "string") ex = { name:"unknown", message:ex }; if (ex.message == null) ex.message = ""; if (ex.name == null) ex.name = "unknown"; if (batch && typeof batch.errorHandler == "function") batch.errorHandler(ex.message, ex); else if (DWREngine._errorHandle...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/3edb5a1fd9763d1db91f61d8efca822206f14560/engine.js/clean/java/org/directwebremoting/engine.js
var q = SimileAjax.History._iframe.contentWindow.location.search; var c = (q.length == 0) ? 0 : Math.max(0, parseInt(q.substr(1)));
SimileAjax.History._handleIFrameOnLoad = function() { /* * This function is invoked when the user herself * navigates backward or forward. We need to adjust * the application's state accordingly. */ var q = SimileAjax.History._iframe.contentWindow.location.search; var c = (q.length == 0...
6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/45b1ecd580363267e81dc76f3b50f9a25374c320/history.js/buggy/src/webapp/api/scripts/history.js
var finishUp = function() { var diff = c - SimileAjax.History._currentIndex; SimileAjax.History._currentIndex += diff; SimileAjax.History._baseIndex += diff; SimileAjax.History._iframe.contentWindow.location.search = "?" + c; }; if (c < SimileAjax.History._currentIndex) { SimileAjax.History._listeners.fire("onBeforeU...
try { var q = SimileAjax.History._iframe.contentWindow.location.search; var c = (q.length == 0) ? 0 : Math.max(0, parseInt(q.substr(1))); var finishUp = function() { var diff = c - SimileAjax.History._currentIndex; SimileAjax.History._currentIndex += diff; SimileAjax.History._baseIndex += diff;
SimileAjax.History._handleIFrameOnLoad = function() { /* * This function is invoked when the user herself * navigates backward or forward. We need to adjust * the application's state accordingly. */ var q = SimileAjax.History._iframe.contentWindow.location.search; var c = (q.length == 0...
6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/45b1ecd580363267e81dc76f3b50f9a25374c320/history.js/buggy/src/webapp/api/scripts/history.js
var action = SimileAjax.History._actions[SimileAjax.History._currentIndex - SimileAjax.History._baseIndex]; try { action.undo(); } catch (e) { SimileAjax.Debug.exception("History: Failed to undo action {" + action.label + "}"); } } SimileAjax.History._listeners.fire("onAfterUndoSeveral", []); finishUp(); }, 0); } els...
SimileAjax.History._iframe.contentWindow.location.search = "?" + c; }; if (c < SimileAjax.History._currentIndex) { SimileAjax.History._listeners.fire("onBeforeUndoSeveral", []); window.setTimeout(function() { while (SimileAjax.History._currentIndex > c && SimileAjax.History._currentIndex > SimileAjax.History._baseInde...
SimileAjax.History._handleIFrameOnLoad = function() { /* * This function is invoked when the user herself * navigates backward or forward. We need to adjust * the application's state accordingly. */ var q = SimileAjax.History._iframe.contentWindow.location.search; var c = (q.length == 0...
6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/45b1ecd580363267e81dc76f3b50f9a25374c320/history.js/buggy/src/webapp/api/scripts/history.js
SimileAjax.History._currentIndex++; } SimileAjax.History._listeners.fire("onAfterRedoSeveral", []); finishUp(); }, 0); } else { var index = SimileAjax.History._currentIndex - SimileAjax.History._baseIndex - 1; var title = (index >= 0 && index < SimileAjax.History._actions.length) ? SimileAjax.History.formatHistoryEntr...
SimileAjax.History._listeners.fire("onAfterUndoSeveral", []); finishUp(); }, 0); } else if (c > SimileAjax.History._currentIndex) { SimileAjax.History._listeners.fire("onBeforeRedoSeveral", []); window.setTimeout(function() { while (SimileAjax.History._currentIndex < c && SimileAjax.History._currentIndex - SimileAjax.H...
SimileAjax.History._handleIFrameOnLoad = function() { /* * This function is invoked when the user herself * navigates backward or forward. We need to adjust * the application's state accordingly. */ var q = SimileAjax.History._iframe.contentWindow.location.search; var c = (q.length == 0...
6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/45b1ecd580363267e81dc76f3b50f9a25374c320/history.js/buggy/src/webapp/api/scripts/history.js
SimileAjax.History._fire("onBeforeUndoSeveral", []);
SimileAjax.History._listeners.fire("onBeforeUndoSeveral", []);
SimileAjax.History._handleIFrameOnLoad = function() { /* * This function is invoked when the user herself * navigates backward or forward. We need to adjust * the application's state accordingly. */ var q = SimileAjax.History._iframe.contentWindow.location.search; var c = (q.length == 0...
6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/ad43220ac38569f1b1e9c78f3783829b1f665216/history.js/clean/src/webapp/api/scripts/history.js
SimileAjax.History._fire("onBeforeUndo", [ action ]);
SimileAjax.History._listeners.fire("onBeforeUndo", [ action ]);
SimileAjax.History._handleIFrameOnLoad = function() { /* * This function is invoked when the user herself * navigates backward or forward. We need to adjust * the application's state accordingly. */ var q = SimileAjax.History._iframe.contentWindow.location.search; var c = (q.length == 0...
6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/ad43220ac38569f1b1e9c78f3783829b1f665216/history.js/clean/src/webapp/api/scripts/history.js
SimileAjax.History._fire("onAfterUndo", [ action, true ]);
SimileAjax.History._listeners.fire("onAfterUndo", [ action, true ]);
SimileAjax.History._handleIFrameOnLoad = function() { /* * This function is invoked when the user herself * navigates backward or forward. We need to adjust * the application's state accordingly. */ var q = SimileAjax.History._iframe.contentWindow.location.search; var c = (q.length == 0...
6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/ad43220ac38569f1b1e9c78f3783829b1f665216/history.js/clean/src/webapp/api/scripts/history.js
SimileAjax.History._fire("onAfterUndo", [ action, false ]);
SimileAjax.History._listeners.fire("onAfterUndo", [ action, false ]);
SimileAjax.History._handleIFrameOnLoad = function() { /* * This function is invoked when the user herself * navigates backward or forward. We need to adjust * the application's state accordingly. */ var q = SimileAjax.History._iframe.contentWindow.location.search; var c = (q.length == 0...
6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/ad43220ac38569f1b1e9c78f3783829b1f665216/history.js/clean/src/webapp/api/scripts/history.js
SimileAjax.History._fire("onAfterUndoSeveral", []);
SimileAjax.History._listeners.fire("onAfterUndoSeveral", []);
SimileAjax.History._handleIFrameOnLoad = function() { /* * This function is invoked when the user herself * navigates backward or forward. We need to adjust * the application's state accordingly. */ var q = SimileAjax.History._iframe.contentWindow.location.search; var c = (q.length == 0...
6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/ad43220ac38569f1b1e9c78f3783829b1f665216/history.js/clean/src/webapp/api/scripts/history.js
SimileAjax.History._fire("onBeforeRedoSeveral", []);
SimileAjax.History._listeners.fire("onBeforeRedoSeveral", []);
SimileAjax.History._handleIFrameOnLoad = function() { /* * This function is invoked when the user herself * navigates backward or forward. We need to adjust * the application's state accordingly. */ var q = SimileAjax.History._iframe.contentWindow.location.search; var c = (q.length == 0...
6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/ad43220ac38569f1b1e9c78f3783829b1f665216/history.js/clean/src/webapp/api/scripts/history.js
SimileAjax.History._fire("onBeforeRedo", [ action ]);
SimileAjax.History._listeners.fire("onBeforeRedo", [ action ]);
SimileAjax.History._handleIFrameOnLoad = function() { /* * This function is invoked when the user herself * navigates backward or forward. We need to adjust * the application's state accordingly. */ var q = SimileAjax.History._iframe.contentWindow.location.search; var c = (q.length == 0...
6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/ad43220ac38569f1b1e9c78f3783829b1f665216/history.js/clean/src/webapp/api/scripts/history.js
SimileAjax.History._fire("onAfterRedo", [ action, true ]);
SimileAjax.History._listeners.fire("onAfterRedo", [ action, true ]);
SimileAjax.History._handleIFrameOnLoad = function() { /* * This function is invoked when the user herself * navigates backward or forward. We need to adjust * the application's state accordingly. */ var q = SimileAjax.History._iframe.contentWindow.location.search; var c = (q.length == 0...
6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/ad43220ac38569f1b1e9c78f3783829b1f665216/history.js/clean/src/webapp/api/scripts/history.js
SimileAjax.History._fire("onAfterRedo", [ action, false ]);
SimileAjax.History._listeners.fire("onAfterRedo", [ action, false ]);
SimileAjax.History._handleIFrameOnLoad = function() { /* * This function is invoked when the user herself * navigates backward or forward. We need to adjust * the application's state accordingly. */ var q = SimileAjax.History._iframe.contentWindow.location.search; var c = (q.length == 0...
6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/ad43220ac38569f1b1e9c78f3783829b1f665216/history.js/clean/src/webapp/api/scripts/history.js
SimileAjax.History._fire("onAfterRedoSeveral", []);
SimileAjax.History._listeners.fire("onAfterRedoSeveral", []);
SimileAjax.History._handleIFrameOnLoad = function() { /* * This function is invoked when the user herself * navigates backward or forward. We need to adjust * the application's state accordingly. */ var q = SimileAjax.History._iframe.contentWindow.location.search; var c = (q.length == 0...
6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/ad43220ac38569f1b1e9c78f3783829b1f665216/history.js/clean/src/webapp/api/scripts/history.js
if (c < this._currentIndex) {
if (c < SimileAjax.History._currentIndex) {
SimileAjax.History._handleIFrameOnLoad = function() { /* * This function is invoked when the user herself * navigates backward or forward. We need to adjust * the application's state accordingly. */ var q = SimileAjax.History._iframe.contentWindow.location.search; var c = (q.length == 0...
6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/e2b0567f433f60f2788ed5285e4b47b2acd34483/history.js/buggy/src/webapp/api/scripts/history.js
if (SimileAjax.History._actions.length > 0) { SimileAjax.History._iframe.contentDocument.title = SimileAjax.History.formatHistoryEntryTitle( SimileAjax.History._actions[SimileAjax.History._currentIndex - SimileAjax.History._baseIndex].label);
var index = SimileAjax.History._currentIndex - SimileAjax.History._baseIndex - 1; if (index >= 0 && index < SimileAjax.History._actions.length) { var actionLabel = SimileAjax.History._actions[index].label; SimileAjax.History._iframe.contentWindow.document.title = SimileAjax.History.formatHistoryEntryTitle(actionLabel)...
SimileAjax.History._handleIFrameOnLoad = function() { /* * This function is invoked when the user herself * navigates backward or forward. We need to adjust * the application's state accordingly. */ var q = SimileAjax.History._iframe.contentWindow.location.search; var c = (q.length == 0...
6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/e2b0567f433f60f2788ed5285e4b47b2acd34483/history.js/buggy/src/webapp/api/scripts/history.js
var action = SimileAjax.History._actions[this._currentIndex - this._baseIndex];
var action = SimileAjax.History._actions[SimileAjax.History._currentIndex - SimileAjax.History._baseIndex];
SimileAjax.History._handleIFrameOnLoad = function() { /* * This function is invoked when the user herself * navigates backward or forward. We need to adjust * the application's state accordingly. */ var q = SimileAjax.History._iframe.contentWindow.location.search; var c = (q.length == 0...
6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/6b9c9a1223dcd49e046ac37241609e6248667b71/history.js/clean/src/webapp/api/scripts/history.js
SimileAjax.History._iframe.contentDocument.title = SimileAjax.History.formatHistoryEntryTitle( SimileAjax.History._actions[this._currentIndex - this._baseIndex].label);
if (SimileAjax.History._actions.length > 0) { SimileAjax.History._iframe.contentDocument.title = SimileAjax.History.formatHistoryEntryTitle( SimileAjax.History._actions[SimileAjax.History._currentIndex - SimileAjax.History._baseIndex].label); }
SimileAjax.History._handleIFrameOnLoad = function() { /* * This function is invoked when the user herself * navigates backward or forward. We need to adjust * the application's state accordingly. */ var q = SimileAjax.History._iframe.contentWindow.location.search; var c = (q.length == 0...
6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/6b9c9a1223dcd49e046ac37241609e6248667b71/history.js/clean/src/webapp/api/scripts/history.js
else { alert("HMDE"+reason);}
DWREngine._handleMetaDataError = function(metadata, reason, ex) { if (metadata.errorHandler) { metadata.errorHandler(reason, ex); } else { alert("HMDE"+reason);}};
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/7458af62295a834b900690563481c05c31b2bcd6/engine.js/clean/java/uk/ltd/getahead/dwr/engine.js
DWREngine._handleMetaDataError = function(metadata, reason, ex) { if (metadata.errorHandler) { metadata.errorHandler(reason, ex);
DWREngine._handleMetaDataError = function(handlers, reason, ex) { if (handlers && typeof handlers.errorHandler == "function") { handlers.errorHandler(reason, ex);
DWREngine._handleMetaDataError = function(metadata, reason, ex) { if (metadata.errorHandler) { metadata.errorHandler(reason, ex); } else { DWREngine._handleError(reason, ex); }};
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/204a8dcf112f6bc2c3897fc4507d023e0e08dfd5/engine.js/clean/java/uk/ltd/getahead/dwr/engine.js
else { DWREngine._handleError(reason, ex); }
DWREngine._handleMetaDataError = function(metadata, reason, ex) { if (metadata.errorHandler) { metadata.errorHandler(reason, ex); }};
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/ed558c2162d130689f40337cfdbe8b9f6fbe8d58/engine.js/clean/java/uk/ltd/getahead/dwr/engine.js
if (handlers && typeof handlers.errorHandler == "function") handlers.errorHandler(reason, ex);
if (handlers && typeof handlers.warningHandler == "function") handlers.warningHandler(reason, ex);
DWREngine._handleMetaDataWarning = function(handlers, reason, ex) { if (handlers && typeof handlers.errorHandler == "function") handlers.errorHandler(reason, ex); else DWREngine._handleWarning(reason, ex);};
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/8806faebd27d931d8328730db3c4fff97eef140f/engine.js/buggy/java/org/directwebremoting/engine.js
SimileAjax.Debug.exception(e);
SimileAjax.Debug.exception("WindowManager: Error handling mouse down", e);
SimileAjax.WindowManager._handleMouseDown = function(elmt, evt, callback) { try { SimileAjax.WindowManager._draggedElement = elmt; SimileAjax.WindowManager._draggedElementCallback = callback; SimileAjax.WindowManager._lastCoords = { x: evt.clientX, y: evt.clientY }; SimileAjax.Win...
6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/ad43220ac38569f1b1e9c78f3783829b1f665216/window-manager.js/buggy/src/webapp/api/scripts/window-manager.js
var responseBatch = DWREngine._batches[DWREngine._batches.length-1];
var responseBatch = DWREngine._batches[DWREngine._batches.length - 1];
DWREngine._handleResponse = function(id, reply) { // Clear this callback out of the list - we don't need it any more var handlers = DWREngine._handlersMap[id]; DWREngine._handlersMap[id] = null; if (handlers) { // Error handlers inside here indicate an error that is nothing to do // with DWR so we handle them...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/dff4db1699c0156646ef9edd075b7cd3d03d398b/engine.js/clean/java/org/directwebremoting/engine.js
DWREngine._handleError(ex);
metadata.errorHandler(ex);
DWREngine._handleResponse = function(id, reply) { var metadata = DWREngine._metadatas[id]; // Clear this callback out of the list - we don't need it any more DWREngine._metadatas[id] = null; if (metadata) { // Error handlers inside here indicate an error that is nothing to do // with DWR so we handle them dif...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/6a3724f890ede63e2e729a28703e23fa4ffaa684/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js
var metadata = DWREngine._metadatas[id]; DWREngine._metadatas[id] = null; if (metadata) {
var callData = DWREngine._callData[id]; DWREngine._callData[id] = null; if (callData) {
DWREngine._handleResponse = function(id, reply) { // Clear this callback out of the list - we don't need it any more var metadata = DWREngine._metadatas[id]; DWREngine._metadatas[id] = null; if (metadata) { // Error handlers inside here indicate an error that is nothing to do // with DWR so we handle them dif...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/631466a360278e355e59ce204f85a808eb10c8c5/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js
metadata.callback(reply);
callData.callback(reply);
DWREngine._handleResponse = function(id, reply) { // Clear this callback out of the list - we don't need it any more var metadata = DWREngine._metadatas[id]; DWREngine._metadatas[id] = null; if (metadata) { // Error handlers inside here indicate an error that is nothing to do // with DWR so we handle them dif...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/631466a360278e355e59ce204f85a808eb10c8c5/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js
if (metadata.errorHandler) metadata.errorHandler(ex);
DWREngine._handleMetaDataError(callData, ex);
DWREngine._handleResponse = function(id, reply) { // Clear this callback out of the list - we don't need it any more var metadata = DWREngine._metadatas[id]; DWREngine._metadatas[id] = null; if (metadata) { // Error handlers inside here indicate an error that is nothing to do // with DWR so we handle them dif...
266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/631466a360278e355e59ce204f85a808eb10c8c5/engine.js/buggy/java/uk/ltd/getahead/dwr/engine.js