rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
DWREngine._remoteEndIFrameResponse = function(batchId) { DWREngine._clearUp(DWREngine._receivedBatch); DWREngine._receivedBatch = null; | dwr.engine._remoteEndIFrameResponse = function(batchId) { dwr.engine._clearUp(dwr.engine._receivedBatch); dwr.engine._receivedBatch = null; | DWREngine._remoteEndIFrameResponse = function(batchId) { DWREngine._clearUp(DWREngine._receivedBatch); DWREngine._receivedBatch = null;}; |
if (script == null) return null; dwr.engine._debug(script); | if (script == null) { return null; } if (script == "") { dwr.engine._debug("Warning: blank script", true); return null; } var debug = script; debug = debug.replace(/\/\/#DWR-START#\r\n/g, ""); debug = debug.replace(/\/\/#DWR-END#\r\n/g, ""); debug = debug.replace(/\r/g, ""); debug = debug.replace(/\n/g, " "); dwr.engin... | dwr.engine._remoteEval = function(script) { if (script == null) return null; dwr.engine._debug(script); return eval(script);}; |
DWREngine._remoteEval = function(script) { | dwr.engine._remoteEval = function(script) { | DWREngine._remoteEval = function(script) { return eval(script);}; |
dwr.engine._remoteHandleBatchException = function(ex) { | dwr.engine._remoteHandleBatchException = function(ex, batchId) { var searchBatch = (dwr.engine._receivedBatch == null && batchId != null); if (searchBatch) { dwr.engine._receivedBatch = dwr.engine._batches[batchId]; } | dwr.engine._remoteHandleBatchException = function(ex) { if (ex.message == undefined) ex.message = ""; dwr.engine._handleError(dwr.engine._receivedBatch, ex);}; |
if (searchBatch) { dwr.engine._receivedBatch = null; dwr.engine._clearUp(dwr.engine._batches[batchId]); } | dwr.engine._remoteHandleBatchException = function(ex) { if (ex.message == undefined) ex.message = ""; dwr.engine._handleError(dwr.engine._receivedBatch, ex);}; | |
dwr.engine._debug("batch == null in dwr.engine._remoteHandleCallback for batchId=" + batchId); | dwr.engine._debug("Warning: batch == null in remoteHandleCallback for batchId=" + batchId, true); | dwr.engine._remoteHandleCallback = function(batchId, callId, reply) { var batch = dwr.engine._batches[batchId]; if (batch == null) { dwr.engine._debug("batch == null in dwr.engine._remoteHandleCallback for batchId=" + batchId); return; } // Error handlers inside here indicate an error that is nothing to do /... |
dwr.engine._debug("Missing handlers. callId=" + callId + ", handlers=" + dwr.util.toDescriptiveString(batch.handlers)); | dwr.engine._debug("Warning: Missing handlers. callId=" + callId + ", handlers=" + dwr.util.toDescriptiveString(batch.handlers), true); | dwr.engine._remoteHandleCallback = function(batchId, callId, reply) { var batch = dwr.engine._batches[batchId]; if (batch == null) { dwr.engine._debug("batch == null in dwr.engine._remoteHandleCallback for batchId=" + batchId); return; } // Error handlers inside here indicate an error that is nothing to do /... |
DWREngine._remoteHandleCallback = function(callId, reply) { | DWREngine._remoteHandleCallback = function(batchId, callId, reply) { var batch = DWREngine._batches[batchId]; if (batch == null) { DWREngine._debug("batch == null in DWREngine._remoteHandleCallback for batchId=" + batchId); return; } | DWREngine._remoteHandleCallback = function(callId, reply) { // Error handlers inside here indicate an error that is nothing to do // with DWR so we handle them differently. if (DWREngine._receivedBatch == null) { DWREngine._debug("receivedBatch == null in DWREngine._remoteHandleCallback"); return; } try { ... |
if (DWREngine._receivedBatch == null) { DWREngine._debug("receivedBatch == null in DWREngine._remoteHandleCallback"); return; } | DWREngine._remoteHandleCallback = function(callId, reply) { // Error handlers inside here indicate an error that is nothing to do // with DWR so we handle them differently. if (DWREngine._receivedBatch == null) { DWREngine._debug("receivedBatch == null in DWREngine._remoteHandleCallback"); return; } try { ... | |
var handlers = DWREngine._receivedBatch.callIds[callId]; | var handlers = batch.callIds[callId]; | DWREngine._remoteHandleCallback = function(callId, reply) { // Error handlers inside here indicate an error that is nothing to do // with DWR so we handle them differently. if (DWREngine._receivedBatch == null) { DWREngine._debug("receivedBatch == null in DWREngine._remoteHandleCallback"); return; } try { ... |
DWREngine._handleError(DWREngine._receivedBatch, ex); | DWREngine._handleError(batch, ex); | DWREngine._remoteHandleCallback = function(callId, reply) { // Error handlers inside here indicate an error that is nothing to do // with DWR so we handle them differently. if (DWREngine._receivedBatch == null) { DWREngine._debug("receivedBatch == null in DWREngine._remoteHandleCallback"); return; } try { ... |
DWREngine._maybeClearUpIFrame(); | DWREngine._remoteHandleCallback = function(callId, reply) { // Error handlers inside here indicate an error that is nothing to do // with DWR so we handle them differently. if (DWREngine._receivedBatch == null) { DWREngine._debug("receivedBatch == null in DWREngine._remoteHandleCallback"); return; } try { ... | |
dwr.engine._debug("Warning: Missing handlers. callId=" + callId + ", handlers=" + dwr.util.toDescriptiveString(batch.handlers), true); | dwr.engine._debug("Warning: Missing handlers. callId=" + callId, true); | dwr.engine._remoteHandleCallback = function(batchId, callId, reply) { var batch = dwr.engine._batches[batchId]; if (batch == null) { dwr.engine._debug("Warning: batch == null in remoteHandleCallback for batchId=" + batchId, true); return; } // Error handlers inside here indicate an error that is nothing to do... |
DWREngine._remoteHandleCallback = function(batchId, callId, reply) { var batch = DWREngine._batches[batchId]; | dwr.engine._remoteHandleCallback = function(batchId, callId, reply) { var batch = dwr.engine._batches[batchId]; | DWREngine._remoteHandleCallback = function(batchId, callId, reply) { var batch = DWREngine._batches[batchId]; if (batch == null) { DWREngine._debug("batch == null in DWREngine._remoteHandleCallback for batchId=" + batchId); return; } // Error handlers inside here indicate an error that is nothing to do // wi... |
DWREngine._debug("batch == null in DWREngine._remoteHandleCallback for batchId=" + batchId); | dwr.engine._debug("batch == null in dwr.engine._remoteHandleCallback for batchId=" + batchId); | DWREngine._remoteHandleCallback = function(batchId, callId, reply) { var batch = DWREngine._batches[batchId]; if (batch == null) { DWREngine._debug("batch == null in DWREngine._remoteHandleCallback for batchId=" + batchId); return; } // Error handlers inside here indicate an error that is nothing to do // wi... |
var handlers = batch.callIds[callId]; if (handlers && typeof handlers.callback == "function") handlers.callback(reply); | var handlers = batch.handlers[callId]; if (!handlers) { dwr.engine._debug("Missing handlers. callId=" + callId + ", handlers=" + dwr.util.toDescriptiveString(batch.handlers)); } else if (typeof handlers.callback == "function") handlers.callback(reply); | DWREngine._remoteHandleCallback = function(batchId, callId, reply) { var batch = DWREngine._batches[batchId]; if (batch == null) { DWREngine._debug("batch == null in DWREngine._remoteHandleCallback for batchId=" + batchId); return; } // Error handlers inside here indicate an error that is nothing to do // wi... |
DWREngine._handleError(batch, ex); | dwr.engine._handleError(batch, ex); | DWREngine._remoteHandleCallback = function(batchId, callId, reply) { var batch = DWREngine._batches[batchId]; if (batch == null) { DWREngine._debug("batch == null in DWREngine._remoteHandleCallback for batchId=" + batchId); return; } // Error handlers inside here indicate an error that is nothing to do // wi... |
dwr.engine._debug("batch == null in dwr.engine._remoteHandleException for batchId=" + batchId); | dwr.engine._debug("Warning: batch == null in remoteHandleException for batchId=" + batchId, true); | dwr.engine._remoteHandleException = function(batchId, callId, ex) { var batch = dwr.engine._batches[batchId]; if (batch == null) { dwr.engine._debug("batch == null in dwr.engine._remoteHandleException for batchId=" + batchId); return; } var handlers = batch.handlers[callId]; if (ex.message == undefined) ex.m... |
DWREngine._remoteHandleException = function(callId, ex) { if (DWREngine._receivedBatch == null) { DWREngine._debug("receivedBatch == null in DWREngine._remoteHandleException"); | DWREngine._remoteHandleException = function(batchId, callId, ex) { var batch = DWREngine._batches[batchId]; if (batch == null) { DWREngine._debug("batch == null in DWREngine._remoteHandleException for batchId=" + batchId); | DWREngine._remoteHandleException = function(callId, ex) { if (DWREngine._receivedBatch == null) { DWREngine._debug("receivedBatch == null in DWREngine._remoteHandleException"); return; } var handlers = DWREngine._receivedBatch.callIds[callId]; if (ex.message == undefined) ex.message = ""; if (handlers && typ... |
var handlers = DWREngine._receivedBatch.callIds[callId]; | var handlers = batch.callIds[callId]; | DWREngine._remoteHandleException = function(callId, ex) { if (DWREngine._receivedBatch == null) { DWREngine._debug("receivedBatch == null in DWREngine._remoteHandleException"); return; } var handlers = DWREngine._receivedBatch.callIds[callId]; if (ex.message == undefined) ex.message = ""; if (handlers && typ... |
DWREngine._maybeClearUpIFrame(); | DWREngine._remoteHandleException = function(callId, ex) { if (DWREngine._receivedBatch == null) { DWREngine._debug("receivedBatch == null in DWREngine._remoteHandleException"); return; } var handlers = DWREngine._receivedBatch.callIds[callId]; if (ex.message == undefined) ex.message = ""; if (handlers && typ... | |
if (handlers && typeof handlers.exceptionHandler == "function") handlers.exceptionHandler(error.message, ex); else if (DWREngine._exceptionHandler) DWREngine._exceptionHandler(error.message, ex); | if (handlers && typeof handlers.exceptionHandler == "function") handlers.exceptionHandler(ex.message, ex); else if (DWREngine._exceptionHandler) DWREngine._exceptionHandler(ex.message, ex); | DWREngine._remoteHandleException = function(batchId, ex) { var handlers = DWREngine._receivedBatch.batchIds[batchId]; if (ex.message == undefined) ex.message = ""; if (handlers && typeof handlers.exceptionHandler == "function") handlers.exceptionHandler(error.message, ex); else if (DWREngine._exceptionHandler) DWRE... |
DWREngine._remoteHandleException = function(batchId, callId, ex) { var batch = DWREngine._batches[batchId]; | dwr.engine._remoteHandleException = function(batchId, callId, ex) { var batch = dwr.engine._batches[batchId]; | DWREngine._remoteHandleException = function(batchId, callId, ex) { var batch = DWREngine._batches[batchId]; if (batch == null) { DWREngine._debug("batch == null in DWREngine._remoteHandleException for batchId=" + batchId); return; } var handlers = batch.callIds[callId]; if (ex.message == undefined) ex.messag... |
DWREngine._debug("batch == null in DWREngine._remoteHandleException for batchId=" + batchId); | dwr.engine._debug("batch == null in dwr.engine._remoteHandleException for batchId=" + batchId); | DWREngine._remoteHandleException = function(batchId, callId, ex) { var batch = DWREngine._batches[batchId]; if (batch == null) { DWREngine._debug("batch == null in DWREngine._remoteHandleException for batchId=" + batchId); return; } var handlers = batch.callIds[callId]; if (ex.message == undefined) ex.messag... |
var handlers = batch.callIds[callId]; | var handlers = batch.handlers[callId]; | DWREngine._remoteHandleException = function(batchId, callId, ex) { var batch = DWREngine._batches[batchId]; if (batch == null) { DWREngine._debug("batch == null in DWREngine._remoteHandleException for batchId=" + batchId); return; } var handlers = batch.callIds[callId]; if (ex.message == undefined) ex.messag... |
else if (DWREngine._exceptionHandler) DWREngine._exceptionHandler(ex.message, ex); | else if (dwr.engine._exceptionHandler) dwr.engine._exceptionHandler(ex.message, ex); | DWREngine._remoteHandleException = function(batchId, callId, ex) { var batch = DWREngine._batches[batchId]; if (batch == null) { DWREngine._debug("batch == null in DWREngine._remoteHandleException for batchId=" + batchId); return; } var handlers = batch.callIds[callId]; if (ex.message == undefined) ex.messag... |
if (batch == null) { dwr.engine._debug("Warning: batch == null in remoteHandleException for batchId=" + batchId, true); return; } | if (batch == null) { dwr.engine._debug("Warning: null batch in remoteHandleException", true); return; } | dwr.engine._remoteHandleException = function(batchId, callId, ex) { var batch = dwr.engine._batches[batchId]; if (batch == null) { dwr.engine._debug("Warning: batch == null in remoteHandleException for batchId=" + batchId, true); return; } var handlers = batch.handlers[callId]; if (ex.message == undefined) e... |
if (handlers && typeof handlers.exceptionHandler == "function") handlers.exceptionHandler(ex.message, ex); else if (dwr.engine._exceptionHandler) dwr.engine._exceptionHandler(ex.message, ex); | if (typeof handlers.exceptionHandler == "function") handlers.exceptionHandler(ex.message, ex); else if (typeof batch.errorHandler == "function") batch.errorHandler(ex.message, ex); else if (dwr.engine._errorHandler) dwr.engine._errorHandler(ex.message, ex); | dwr.engine._remoteHandleException = function(batchId, callId, ex) { var batch = dwr.engine._batches[batchId]; if (batch == null) { dwr.engine._debug("Warning: batch == null in remoteHandleException for batchId=" + batchId, true); return; } var handlers = batch.handlers[callId]; if (ex.message == undefined) e... |
DWREngine._maybeClearUpIFrame(); | DWREngine._remoteHandleExceptionWithoutCallId = function(ex) { if (ex.message == undefined) ex.message = ""; DWREngine._handleError(DWREngine._receivedBatch, ex); DWREngine._maybeClearUpIFrame();}; | |
DWREngine._remoteHandleExceptionWithoutCallId = function(ex) { | dwr.engine._remoteHandleExceptionWithoutCallId = function(ex) { | DWREngine._remoteHandleExceptionWithoutCallId = function(ex) { if (ex.message == undefined) ex.message = ""; DWREngine._handleError(DWREngine._receivedBatch, ex);}; |
DWREngine._handleError(DWREngine._receivedBatch, ex); | dwr.engine._handleError(dwr.engine._receivedBatch, ex); | DWREngine._remoteHandleExceptionWithoutCallId = function(ex) { if (ex.message == undefined) ex.message = ""; DWREngine._handleError(DWREngine._receivedBatch, ex);}; |
dwr.engine._debug("Sending batchId=" + batch.map.batchId + " handlers=" + dwr.util.toDescriptiveString(batch.handlers)); | dwr.engine._sendData = function(batch) { batch.map.batchId = dwr.engine._nextBatchId++; dwr.engine._batches[batch.map.batchId] = batch; dwr.engine._batchesLength++; batch.completed = false; dwr.engine._debug("Sending batchId=" + batch.map.batchId + " handlers=" + dwr.util.toDescriptiveString(batch.handlers)); for... | |
dwr.engine._pollCometSize = 0; | dwr.engine._cometProcessed = 0; | dwr.engine._sendData = function(batch) { batch.map.batchId = dwr.engine._nextBatchId++; dwr.engine._batches[batch.map.batchId] = batch; dwr.engine._batchesLength++; batch.completed = false; dwr.engine._debug("Sending batchId=" + batch.map.batchId + " handlers=" + dwr.util.toDescriptiveString(batch.handlers)); for... |
batch.iframe.batch = batch; | DWREngine._sendData = function(batch) { for (var i = 0; i < batch.preHooks.length; i++) { batch.preHooks[i](); } batch.preHooks = null; // Set a timeout if (batch.timeout && batch.timeout != 0) { batch.interval = setInterval(function() { DWREngine._abortRequest(batch); }, batch.timeout); } // Get setup for... | |
if (batch.preHook) { batch.preHook(); } | if (batch.map.callCount == 0) return; if (batch.preHook) batch.preHook(); | DWREngine._sendData = function(batch) { // Actually make the call if (batch.preHook) { batch.preHook(); } // Set a timeout if (batch.metadata && batch.metadata.timeout && batch.metadata.timeout != 0) { var funcReq = function() { DWREngine._abortRequest(batch); }; setTimeout(funcReq, batch.metadata.timeout... |
DWREngine._handleError(ex); | batch.metadata.errorHandler(ex); | DWREngine._sendData = function(batch) { // Actually make the call if (batch.preHook) { batch.preHook(); } // Set a timeout if (batch.metadata && batch.metadata.timeout && batch.metadata.timeout != 0) { var funcReq = function() { DWREngine._abortRequest(batch); }; setTimeout(funcReq, batch.metadata.timeout... |
DWREngine._handleMetaDataError(null, ex); | DWREngine._handleMetaDataWarning(null, ex); | DWREngine._sendData = function(batch) { if (batch.map.callCount == 0) return; // Call any pre-hooks for (var i = 0; i < batch.preHooks.length; i++) { batch.preHooks[i](); } batch.preHooks = null; // Set a timeout if (batch.timeout && batch.timeout != 0) { batch.interval = setInterval(function() { DWREngine... |
batch.metadata.errorHandler(ex); | DWREngine._handleMetaDataError(batch.metadata, ex); | DWREngine._sendData = function(batch) { // If the batch is empty, don't send anything if (batch.map.callCount == 0) return; // Call any pre-hooks if (batch.preHook) batch.preHook(); // Set a timeout if (batch.metadata && batch.metadata.timeout && batch.metadata.timeout != 0) { var funcReq = function() { DWREng... |
if (parseInt(version, 10) < 400) batch.httpMethod == "GET"; | if (parseInt(version, 10) < 400) batch.httpMethod = "GET"; | DWREngine._sendData = function(batch) { for (var i = 0; i < batch.preHooks.length; i++) { batch.preHooks[i](); } batch.preHooks = null; // Set a timeout if (batch.timeout && batch.timeout != 0) { batch.interval = setInterval(function() { DWREngine._abortRequest(batch); }, batch.timeout); } // Get setup for... |
if (batch.verb == "GET" || navigator.userAgent.indexOf('Safari') >= 0) { | var indexSafari = navigator.userAgent.indexOf('Safari/'); if (indexSafari >= 0) { var version = navigator.userAgent.substring(indexSafari + 7); if (parseInt(version, 10) < 400) { batch.verb == "GET"; } } if (batch.verb == "GET") { | DWREngine._sendData = function(batch) { // If the batch is empty, don't send anything if (batch.map.callCount == 0) return; // Call any pre-hooks if (batch.preHook) batch.preHook(); // Set a timeout if (batch.metadata && batch.metadata.timeout && batch.metadata.timeout != 0) { var funcReq = function() { DWREng... |
if (navigator.userAgent.indexOf('Gecko') >= 0) { batch.req.setRequestHeader('Connection', 'close'); } batch.req.setRequestHeader('Content-type', 'application/x-dwr'); | DWREngine._sendData = function(batch) { // Actually make the call if (batch.preHook) { batch.preHook(); } // Set a timeout if (batch.metadata && batch.metadata.timeout && batch.metadata.timeout != 0) { var funcReq = function() { DWREngine._abortRequest(batch); }; setTimeout(funcReq, batch.metadata.timeout... | |
batch.req.setRequestHeader(prop, batch.headers[prop]); | var value = batch.headers[prop]; if (typeof value == "string") batch.req.setRequestHeader(prop, value); | DWREngine._sendData = function(batch) { for (var i = 0; i < batch.preHooks.length; i++) { batch.preHooks[i](); } batch.preHooks = null; // Set a timeout if (batch.timeout && batch.timeout != 0) { batch.interval = setInterval(function() { DWREngine._abortRequest(batch); }, batch.timeout); } // Get setup for... |
var formInput = document.createElement("input"); formInput.setAttribute("type", "hidden"); formInput.setAttribute("name", prop); formInput.setAttribute("value", batch.map[prop]); batch.form.appendChild(formInput); | var value = batch.map[prop]; if (typeof value != "function") { var formInput = document.createElement("input"); formInput.setAttribute("type", "hidden"); formInput.setAttribute("name", prop); formInput.setAttribute("value", value); batch.form.appendChild(formInput); } | DWREngine._sendData = function(batch) { for (var i = 0; i < batch.preHooks.length; i++) { batch.preHooks[i](); } batch.preHooks = null; // Set a timeout if (batch.timeout && batch.timeout != 0) { batch.interval = setInterval(function() { DWREngine._abortRequest(batch); }, batch.timeout); } // Get setup for... |
DWREngine._sendData = function(batch) { batch.map.batchId = DWREngine._nextBatchId++; DWREngine._batches[batch.map.batchId] = batch; DWREngine._batchesLength++; | dwr.engine._sendData = function(batch) { batch.map.batchId = dwr.engine._nextBatchId++; dwr.engine._batches[batch.map.batchId] = batch; dwr.engine._batchesLength++; | DWREngine._sendData = function(batch) { batch.map.batchId = DWREngine._nextBatchId++; DWREngine._batches[batch.map.batchId] = batch; DWREngine._batchesLength++; batch.completed = false; DWREngine._debug("Sending batchId=" + batch.map.batchId + " outstanding batches=" + DWREngine._batchesLength + " queued batches="... |
DWREngine._debug("Sending batchId=" + batch.map.batchId + " outstanding batches=" + DWREngine._batchesLength + " queued batches=" + DWREngine._batchQueue.length); | dwr.engine._debug("Sending batchId=" + batch.map.batchId + " handlers=" + dwr.util.toDescriptiveString(batch.handlers)); | DWREngine._sendData = function(batch) { batch.map.batchId = DWREngine._nextBatchId++; DWREngine._batches[batch.map.batchId] = batch; DWREngine._batchesLength++; batch.completed = false; DWREngine._debug("Sending batchId=" + batch.map.batchId + " outstanding batches=" + DWREngine._batchesLength + " queued batches="... |
batch.interval = setInterval(function() { DWREngine._abortRequest(batch); }, batch.timeout); | batch.interval = setInterval(function() { dwr.engine._abortRequest(batch); }, batch.timeout); | DWREngine._sendData = function(batch) { batch.map.batchId = DWREngine._nextBatchId++; DWREngine._batches[batch.map.batchId] = batch; DWREngine._batchesLength++; batch.completed = false; DWREngine._debug("Sending batchId=" + batch.map.batchId + " outstanding batches=" + DWREngine._batchesLength + " queued batches="... |
if (batch.rpcType == DWREngine.XMLHttpRequest) { | if (batch.rpcType == dwr.engine.XMLHttpRequest) { | DWREngine._sendData = function(batch) { batch.map.batchId = DWREngine._nextBatchId++; DWREngine._batches[batch.map.batchId] = batch; DWREngine._batchesLength++; batch.completed = false; DWREngine._debug("Sending batchId=" + batch.map.batchId + " outstanding batches=" + DWREngine._batchesLength + " queued batches="... |
batch.req = DWREngine._newActiveXObject(DWREngine._XMLHTTP); | batch.req = dwr.engine._newActiveXObject(dwr.engine._XMLHTTP); | DWREngine._sendData = function(batch) { batch.map.batchId = DWREngine._nextBatchId++; DWREngine._batches[batch.map.batchId] = batch; DWREngine._batchesLength++; batch.completed = false; DWREngine._debug("Sending batchId=" + batch.map.batchId + " outstanding batches=" + DWREngine._batchesLength + " queued batches="... |
batch.req.onreadystatechange = function() { DWREngine._stateChange(batch); }; | batch.req.onreadystatechange = function() { dwr.engine._stateChange(batch); }; | DWREngine._sendData = function(batch) { batch.map.batchId = DWREngine._nextBatchId++; DWREngine._batches[batch.map.batchId] = batch; DWREngine._batchesLength++; batch.completed = false; DWREngine._debug("Sending batchId=" + batch.map.batchId + " outstanding batches=" + DWREngine._batchesLength + " queued batches="... |
if (batch.isPoll) DWREngine._pollReq = batch.req; | if (batch.isPoll) dwr.engine._pollReq = batch.req; | DWREngine._sendData = function(batch) { batch.map.batchId = DWREngine._nextBatchId++; DWREngine._batches[batch.map.batchId] = batch; DWREngine._batchesLength++; batch.completed = false; DWREngine._debug("Sending batchId=" + batch.map.batchId + " outstanding batches=" + DWREngine._batchesLength + " queued batches="... |
batch.mode = batch.isPoll ? DWREngine._ModePlainPoll : DWREngine._ModePlainCall; request = DWREngine._constructRequest(batch); | batch.mode = batch.isPoll ? dwr.engine._ModePlainPoll : dwr.engine._ModePlainCall; request = dwr.engine._constructRequest(batch); | DWREngine._sendData = function(batch) { batch.map.batchId = DWREngine._nextBatchId++; DWREngine._batches[batch.map.batchId] = batch; DWREngine._batchesLength++; batch.completed = false; DWREngine._debug("Sending batchId=" + batch.map.batchId + " outstanding batches=" + DWREngine._batchesLength + " queued batches="... |
DWREngine._handleWarning(null, ex); | dwr.engine._handleWarning(null, ex); | DWREngine._sendData = function(batch) { batch.map.batchId = DWREngine._nextBatchId++; DWREngine._batches[batch.map.batchId] = batch; DWREngine._batchesLength++; batch.completed = false; DWREngine._debug("Sending batchId=" + batch.map.batchId + " outstanding batches=" + DWREngine._batchesLength + " queued batches="... |
if (!batch.async) DWREngine._stateChange(batch); | if (!batch.async) dwr.engine._stateChange(batch); | DWREngine._sendData = function(batch) { batch.map.batchId = DWREngine._nextBatchId++; DWREngine._batches[batch.map.batchId] = batch; DWREngine._batchesLength++; batch.completed = false; DWREngine._debug("Sending batchId=" + batch.map.batchId + " outstanding batches=" + DWREngine._batchesLength + " queued batches="... |
DWREngine._handleError(batch, ex); | dwr.engine._handleError(batch, ex); | DWREngine._sendData = function(batch) { batch.map.batchId = DWREngine._nextBatchId++; DWREngine._batches[batch.map.batchId] = batch; DWREngine._batchesLength++; batch.completed = false; DWREngine._debug("Sending batchId=" + batch.map.batchId + " outstanding batches=" + DWREngine._batchesLength + " queued batches="... |
else if (batch.rpcType != DWREngine.ScriptTag) { | else if (batch.rpcType != dwr.engine.ScriptTag) { | DWREngine._sendData = function(batch) { batch.map.batchId = DWREngine._nextBatchId++; DWREngine._batches[batch.map.batchId] = batch; DWREngine._batchesLength++; batch.completed = false; DWREngine._debug("Sending batchId=" + batch.map.batchId + " outstanding batches=" + DWREngine._batchesLength + " queued batches="... |
batch.mode = batch.isPoll ? DWREngine._ModeHtmlPoll : DWREngine._ModeHtmlCall; | batch.mode = batch.isPoll ? dwr.engine._ModeHtmlPoll : dwr.engine._ModeHtmlCall; | DWREngine._sendData = function(batch) { batch.map.batchId = DWREngine._nextBatchId++; DWREngine._batches[batch.map.batchId] = batch; DWREngine._batchesLength++; batch.completed = false; DWREngine._debug("Sending batchId=" + batch.map.batchId + " outstanding batches=" + DWREngine._batchesLength + " queued batches="... |
DWREngine._pollFrame = batch.iframe; DWREngine._pollCometSize = 0; | dwr.engine._pollFrame = batch.iframe; dwr.engine._pollCometSize = 0; | DWREngine._sendData = function(batch) { batch.map.batchId = DWREngine._nextBatchId++; DWREngine._batches[batch.map.batchId] = batch; DWREngine._batchesLength++; batch.completed = false; DWREngine._debug("Sending batchId=" + batch.map.batchId + " outstanding batches=" + DWREngine._batchesLength + " queued batches="... |
request = DWREngine._constructRequest(batch); | request = dwr.engine._constructRequest(batch); | DWREngine._sendData = function(batch) { batch.map.batchId = DWREngine._nextBatchId++; DWREngine._batches[batch.map.batchId] = batch; DWREngine._batchesLength++; batch.completed = false; DWREngine._debug("Sending batchId=" + batch.map.batchId + " outstanding batches=" + DWREngine._batchesLength + " queued batches="... |
if (batch.map.callCount == 0) return; | DWREngine._sendData = function(batch) { if (batch.map.callCount == 0) return; // Call any pre-hooks for (var i = 0; i < batch.preHooks.length; i++) { batch.preHooks[i](); } batch.preHooks = null; // Set a timeout if (batch.timeout && batch.timeout != 0) { batch.interval = setInterval(function() { DWREngine... | |
if (data == null) { batch.map[name] = "null:null"; return; | if (data == null) { batch.map[name] = "null:null"; return; } switch (typeof data) { case "boolean": batch.map[name] = "boolean:" + data; break; case "number": batch.map[name] = "number:" + data; break; case "string": batch.map[name] = "string:" + encodeURIComponent(data); break; case "object": if (data.dwrSerialize... | DWREngine._serializeAll = function(batch, referto, data, name) { if (data == null) { batch.map[name] = "null:null"; return; } switch (typeof data) { case "boolean": batch.map[name] = "boolean:" + data; break; case "number": batch.map[name] = "number:" + data; bre... |
switch (typeof data) { case "boolean": batch.map[name] = "boolean:" + data; break; | case "function": break; | DWREngine._serializeAll = function(batch, referto, data, name) { if (data == null) { batch.map[name] = "null:null"; return; } switch (typeof data) { case "boolean": batch.map[name] = "boolean:" + data; break; case "number": batch.map[name] = "number:" + data; bre... |
case "number": batch.map[name] = "number:" + data; break; case "string": batch.map[name] = "string:" + encodeURIComponent(data); break; case "object": if (data.dwrSerialize) { batch.map[name] = data.dwrSerialize(batch, referto, data, name); } else if (data.nodeName) { batch.map[name] = DWREngine._serializeXml(batch, ... | default: if (DWREngine._warningHandler) { DWREngine._warningHandler("Unexpected type: " + typeof data + ", attempting default converter."); | DWREngine._serializeAll = function(batch, referto, data, name) { if (data == null) { batch.map[name] = "null:null"; return; } switch (typeof data) { case "boolean": batch.map[name] = "boolean:" + data; break; case "number": batch.map[name] = "number:" + data; bre... |
batch.map[name] = "default:" + data; break; } | DWREngine._serializeAll = function(batch, referto, data, name) { if (data == null) { batch.map[name] = "null:null"; return; } switch (typeof data) { case "boolean": batch.map[name] = "boolean:" + data; break; case "number": batch.map[name] = "number:" + data; bre... | |
DWREngine._serializeAll = function(batch, referto, data, name) { | dwr.engine._serializeAll = function(batch, referto, data, name) { | DWREngine._serializeAll = function(batch, referto, data, name) { if (data == null) { batch.map[name] = "null:null"; return; } switch (typeof data) { case "boolean": batch.map[name] = "boolean:" + data; break; case "number": batch.map[name] = "number:" + data; break; case "string": batch.map[n... |
else if (data instanceof Array) batch.map[name] = DWREngine._serializeArray(batch, referto, data, name); else batch.map[name] = DWREngine._serializeObject(batch, referto, data, name); | else if (data instanceof Array) batch.map[name] = dwr.engine._serializeArray(batch, referto, data, name); else batch.map[name] = dwr.engine._serializeObject(batch, referto, data, name); | DWREngine._serializeAll = function(batch, referto, data, name) { if (data == null) { batch.map[name] = "null:null"; return; } switch (typeof data) { case "boolean": batch.map[name] = "boolean:" + data; break; case "number": batch.map[name] = "number:" + data; break; case "string": batch.map[n... |
DWREngine._handleWarning(null, { name:"dwrengine.unexpectedType", message:"Unexpected type: " + typeof data + ", attempting default converter." }); | dwr.engine._handleWarning(null, { name:"dwr.engine.unexpectedType", message:"Unexpected type: " + typeof data + ", attempting default converter." }); | DWREngine._serializeAll = function(batch, referto, data, name) { if (data == null) { batch.map[name] = "null:null"; return; } switch (typeof data) { case "boolean": batch.map[name] = "boolean:" + data; break; case "number": batch.map[name] = "number:" + data; break; case "string": batch.map[n... |
DWREngine._serializeArray = function(batch, referto, data, name) { var ref = DWREngine._lookup(referto, data, name); | dwr.engine._serializeArray = function(batch, referto, data, name) { var ref = dwr.engine._lookup(referto, data, name); | DWREngine._serializeArray = function(batch, referto, data, name) { var ref = DWREngine._lookup(referto, data, name); if (ref) return ref; var reply = "Array:["; for (var i = 0; i < data.length; i++) { if (i != 0) reply += ","; batch.paramCount++; var childName = "c" + DWREngine._batch.map.callCount + "-e" ... |
var childName = "c" + DWREngine._batch.map.callCount + "-e" + batch.paramCount; DWREngine._serializeAll(batch, referto, data[i], childName); | var childName = "c" + dwr.engine._batch.map.callCount + "-e" + batch.paramCount; dwr.engine._serializeAll(batch, referto, data[i], childName); | DWREngine._serializeArray = function(batch, referto, data, name) { var ref = DWREngine._lookup(referto, data, name); if (ref) return ref; var reply = "Array:["; for (var i = 0; i < data.length; i++) { if (i != 0) reply += ","; batch.paramCount++; var childName = "c" + DWREngine._batch.map.callCount + "-e" ... |
var ref = DWREngine._lookup(referto, this, name); | var ref = DWREngine._lookup(referto, data, name); | DWREngine._serializeArray = function(batch, referto, data, name) { var ref = DWREngine._lookup(referto, this, name); if (ref) return ref; var reply = "Array:["; for (var i = 0; i < this.length; i++) { if (i != 0) { reply += ","; } batch.paramCount++; var childName = "c" + DWREngine._batch.map.callC... |
for (var i = 0; i < this.length; i++) { | for (var i = 0; i < data.length; i++) { | DWREngine._serializeArray = function(batch, referto, data, name) { var ref = DWREngine._lookup(referto, this, name); if (ref) return ref; var reply = "Array:["; for (var i = 0; i < this.length; i++) { if (i != 0) { reply += ","; } batch.paramCount++; var childName = "c" + DWREngine._batch.map.callC... |
DWREngine._serializeAll(batch, referto, this[i], childName); | DWREngine._serializeAll(batch, referto, data[i], childName); | DWREngine._serializeArray = function(batch, referto, data, name) { var ref = DWREngine._lookup(referto, this, name); if (ref) return ref; var reply = "Array:["; for (var i = 0; i < this.length; i++) { if (i != 0) { reply += ","; } batch.paramCount++; var childName = "c" + DWREngine._batch.map.callC... |
return "Date:[ " + this.getUTCFullYear() + ", " + this.getUTCMonth() + ", " + this.getUTCDate() + ", " + this.getUTCHours() + ", " + this.getUTCMinutes() + ", " + this.getUTCSeconds() + ", " + this.getUTCMilliseconds() + "]"; | return "Date:" + this.getTime(); | DWREngine._serializeDate = function(batch, referto, data, name){ return "Date:[ " + this.getUTCFullYear() + ", " + this.getUTCMonth() + ", " + this.getUTCDate() + ", " + this.getUTCHours() + ", " + this.getUTCMinutes() + ", " + this.getUTCSeconds() + ", " + this.getUT... |
for (element in data) { if (element != "dwrSerialize") { batch.paramCount++; var childName = "c" + DWREngine._batch.map.callCount + "-e" + batch.paramCount; DWREngine._serializeAll(batch, referto, data[element], childName); | for (element in data) { batch.paramCount++; var childName = "c" + DWREngine._batch.map.callCount + "-e" + batch.paramCount; DWREngine._serializeAll(batch, referto, data[element], childName); | DWREngine._serializeObject = function(batch, referto, data, name) { var ref = DWREngine._lookup(referto, data, name); if (ref) return ref; // This check for an HTML is not complete, but is there a better way? // Maybe we should add: data.hasChildNodes typeof "function" == true if (data.nodeName && data.nodeType) {... |
reply += encodeURIComponent(element); reply += ":reference:"; reply += childName; reply += ", "; } | reply += encodeURIComponent(element) + ":reference:" + childName + ", "; | DWREngine._serializeObject = function(batch, referto, data, name) { var ref = DWREngine._lookup(referto, data, name); if (ref) return ref; // This check for an HTML is not complete, but is there a better way? // Maybe we should add: data.hasChildNodes typeof "function" == true if (data.nodeName && data.nodeType) {... |
var reply = "Object:{"; | var reply = "Object_" + DWREngine._getObjectClassName(data) + ":{"; | DWREngine._serializeObject = function(batch, referto, data, name) { var ref = DWREngine._lookup(referto, data, name); if (ref) return ref; // This check for an HTML is not complete, but is there a better way? // Maybe we should add: data.hasChildNodes typeof "function" == true if (data.nodeName && data.nodeType) {... |
if (data.nodeName) { return DWREngine._serializeXml(batch, referto, data, name); | if (data.nodeName) { return DWREngine._serializeXml(batch, referto, data, name); } var reply = "Object:{"; var element; for (element in this) { if (element != "dwrSerialize") { batch.paramCount++; var childName = "c" + DWREngine._batch.map.callCount + "-e" + batch.paramCount; DWREngine._serializeAll(batch, referto, ... | DWREngine._serializeObject = function(batch, referto, data, name) { var ref = DWREngine._lookup(referto, this, name); if (ref) return ref; if (data.nodeName) { return DWREngine._serializeXml(batch, referto, data, name); } // treat objects as an associative arrays var reply = "Object:{"; var ... |
var reply = "Object:{"; var element; for (element in this) { if (element != "dwrSerialize") { batch.paramCount++; var childName = "c" + DWREngine._batch.map.callCount + "-e" + batch.paramCount; DWREngine._serializeAll(batch, referto, this[element], childName); | if (reply.substring(reply.length - 2) == ", ") { reply = reply.substring(0, reply.length - 2); } reply += "}"; | DWREngine._serializeObject = function(batch, referto, data, name) { var ref = DWREngine._lookup(referto, this, name); if (ref) return ref; if (data.nodeName) { return DWREngine._serializeXml(batch, referto, data, name); } // treat objects as an associative arrays var reply = "Object:{"; var ... |
reply += encodeURIComponent(element); reply += ":reference:"; reply += childName; reply += ", "; } } if (reply.substring(reply.length - 2) == ", ") { reply = reply.substring(0, reply.length - 2); } reply += "}"; return reply; | return reply; | DWREngine._serializeObject = function(batch, referto, data, name) { var ref = DWREngine._lookup(referto, this, name); if (ref) return ref; if (data.nodeName) { return DWREngine._serializeXml(batch, referto, data, name); } // treat objects as an associative arrays var reply = "Object:{"; var ... |
DWREngine._serializeObject = function(batch, referto, data, name) { var ref = DWREngine._lookup(referto, data, name); | dwr.engine._serializeObject = function(batch, referto, data, name) { var ref = dwr.engine._lookup(referto, data, name); | DWREngine._serializeObject = function(batch, referto, data, name) { var ref = DWREngine._lookup(referto, data, name); if (ref) return ref; // This check for an HTML is not complete, but is there a better way? // Maybe we should add: data.hasChildNodes typeof "function" == true if (data.nodeName && data.nodeType) {... |
return DWREngine._serializeXml(batch, referto, data, name); | return dwr.engine._serializeXml(batch, referto, data, name); | DWREngine._serializeObject = function(batch, referto, data, name) { var ref = DWREngine._lookup(referto, data, name); if (ref) return ref; // This check for an HTML is not complete, but is there a better way? // Maybe we should add: data.hasChildNodes typeof "function" == true if (data.nodeName && data.nodeType) {... |
var reply = "Object_" + DWREngine._getObjectClassName(data) + ":{"; | var reply = "Object_" + dwr.engine._getObjectClassName(data) + ":{"; | DWREngine._serializeObject = function(batch, referto, data, name) { var ref = DWREngine._lookup(referto, data, name); if (ref) return ref; // This check for an HTML is not complete, but is there a better way? // Maybe we should add: data.hasChildNodes typeof "function" == true if (data.nodeName && data.nodeType) {... |
var childName = "c" + DWREngine._batch.map.callCount + "-e" + batch.paramCount; DWREngine._serializeAll(batch, referto, data[element], childName); | var childName = "c" + dwr.engine._batch.map.callCount + "-e" + batch.paramCount; dwr.engine._serializeAll(batch, referto, data[element], childName); | DWREngine._serializeObject = function(batch, referto, data, name) { var ref = DWREngine._lookup(referto, data, name); if (ref) return ref; // This check for an HTML is not complete, but is there a better way? // Maybe we should add: data.hasChildNodes typeof "function" == true if (data.nodeName && data.nodeType) {... |
reply = reply.substring(0, reply.length - 2); | if (reply.substring(reply.length - 2) == ", ") { reply = reply.substring(0, reply.length - 2); } | DWREngine._serializeObject = function(batch, referto, data, name){ var ref = DWREngine._lookup(referto, this, name); if (ref) { return ref; } if (data.nodeName) { return DWREngine._serializeXml(batch, referto, data, name); } // treat objects as an associative arrays var reply = ... |
var ref = DWREngine._lookup(referto, this, name); | var ref = DWREngine._lookup(referto, data, name); | DWREngine._serializeObject = function(batch, referto, data, name) { var ref = DWREngine._lookup(referto, this, name); if (ref) return ref; // This check for an HTML is not complete, but is there a better way. // Maybe we should add: data.hasChildNodes typeof "function" == true if (data.nodeName && data.nodeType) {... |
for (element in this) { | for (element in data) { | DWREngine._serializeObject = function(batch, referto, data, name) { var ref = DWREngine._lookup(referto, this, name); if (ref) return ref; // This check for an HTML is not complete, but is there a better way. // Maybe we should add: data.hasChildNodes typeof "function" == true if (data.nodeName && data.nodeType) {... |
DWREngine._serializeAll(batch, referto, this[element], childName); | DWREngine._serializeAll(batch, referto, data[element], childName); | DWREngine._serializeObject = function(batch, referto, data, name) { var ref = DWREngine._lookup(referto, this, name); if (ref) return ref; // This check for an HTML is not complete, but is there a better way. // Maybe we should add: data.hasChildNodes typeof "function" == true if (data.nodeName && data.nodeType) {... |
else output = data.toXml; | else if (data.toXml) output = data.toXml; else output = data.innerHTML; | DWREngine._serializeXml = function(batch, referto, data, name) { var ref = DWREngine._lookup(referto, data, name); if (ref) return ref; var output; if (window.XMLSerializer) output = new XMLSerializer().serializeToString(data); else output = data.toXml; return "XML:" + encodeURIComponent(output);}; |
if (window.XMLSerializer) { var serializer = new XMLSerializer(); output = serializer.serializeToString(data); } else { output = data.toXml; } | if (window.XMLSerializer) output = new XMLSerializer().serializeToString(data); else output = data.toXml; | DWREngine._serializeXml = function(batch, referto, data, name) { var ref = DWREngine._lookup(referto, data, name); if (ref) return ref; var output; if (window.XMLSerializer) { var serializer = new XMLSerializer(); output = serializer.serializeToString(data); } else { output = data.toXml; } return "XML:... |
DWREngine._serializeXml = function(batch, referto, data, name) { var ref = DWREngine._lookup(referto, data, name); | dwr.engine._serializeXml = function(batch, referto, data, name) { var ref = dwr.engine._lookup(referto, data, name); | DWREngine._serializeXml = function(batch, referto, data, name) { var ref = DWREngine._lookup(referto, data, name); if (ref) return ref; var output; if (window.XMLSerializer) output = new XMLSerializer().serializeToString(data); else if (data.toXml) output = data.toXml; else output = data.innerHTML; return "XML:"... |
var ref = DWREngine._lookup(referto, this, name); | var ref = DWREngine._lookup(referto, data, name); | DWREngine._serializeXml = function(batch, referto, data, name) { var ref = DWREngine._lookup(referto, this, name); if (ref) return ref; var output; if (window.XMLSerializer) { var serializer = new XMLSerializer(); output = serializer.serializeToString(data); } else { output = data.toXml; } return "XML:... |
if (data[property] != null && typeof data[property] == "object") { var prefixClone = new Array(); | if (dwr.util._isObject(data[property]) && !dwr.util._isArray(data[property])) { var prefixClone = []; | dwr.util._setDataProperties = function(data, prefixes) { for (var property in data) { // Are there any elements with that id or name if (data[property] != null && typeof data[property] == "object") { var prefixClone = new Array(); for (var i = 0; i < prefixes.length; i++) { prefixClone.push(pref... |
var disabledZone = document.createElement('div'); | disabledZone = document.createElement('div'); | DWRUtil._showLoadingMessage = function(){ var disabledZone = $('disabledZone'); if (!disabledZone) { var disabledZone = document.createElement('div'); disabledZone.setAttribute('id', 'disabledZone'); disabledZone.style.position = "absolute"; disabledZone.style.zIndex = "1000"; ... |
batch.completed = true; | 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) { batch.completed = true; ... | |
DWREngine._finalize(batch); | DWREngine._removeNode(batch.div); DWREngine._removeNode(batch.iframe); DWREngine._removeNode(batch.form); delete batch.req; if (batch.postHook) { batch.postHook(); } for (var i = 0; i < DWREngine._batches.length; i++) { if (DWREngine._batches[i] == batch) { DWREngine._batches.splice(i, 1); break; } } if (DWREn... | 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) { batch.completed = true; ... |
DWREngine._stateChangeError(reply); | DWREngine._stateChangeError(batch, reply); | DWREngine._stateChange = function(batch){ if (batch.req.readyState == 4) { try { var reply = batch.req.responseText; if (reply != null && reply != "") { if (batch.req.status && batch.req.status == 200) { batch.complete... |
DWREngine._stateChangeError("No data received from server"); | DWREngine._stateChangeError(batch, "No data received from server"); | DWREngine._stateChange = function(batch){ if (batch.req.readyState == 4) { try { var reply = batch.req.responseText; if (reply != null && reply != "") { if (batch.req.status && batch.req.status == 200) { batch.complete... |
DWREngine._stateChangeError(ex); | DWREngine._stateChangeError(batch, ex); | DWREngine._stateChange = function(batch){ if (batch.req.readyState == 4) { try { var reply = batch.req.responseText; if (reply != null && reply != "") { if (batch.req.status && batch.req.status == 200) { batch.complete... |
DWREngine.handleError(call.id, call.req.responseText); | DWREngine._handleError(call.id, call.req.responseText); | DWREngine._stateChange = function(call){ if (call.req.readyState == 4) { try { if (call.req.status && call.req.status == 200) { eval(call.req.responseText); } else { DWREngine.handleError(call.id, call.req.responseT... |
DWREngine.handleError(call.id, ex); | DWREngine._handleError(call.id, ex); | DWREngine._stateChange = function(call){ if (call.req.readyState == 4) { try { if (call.req.status && call.req.status == 200) { eval(call.req.responseText); } else { DWREngine.handleError(call.id, call.req.responseT... |
if (toEval != null) dwr.engine._remoteEval(toEval); else dwr.engine._debug("Nothing to eval"); | dwr.engine._remoteEval(toEval); | 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.