src/aria/core/transport/BaseXHR.js
function (reqId, connection, callback) {
            // Interval for processing the response from the server
            var scope = this;
            connection.onreadystatechange = function () {
                if (connection && connection.readyState === 4) {
                    connection.onreadystatechange = Aria.empty;
                    if (!ariaCoreIO.pendingRequests[reqId]) {
                        return;
                    }
                    ariaCoreIO.clearTimeout(reqId);

                    scope._handleTransactionResponse(reqId, connection, callback);
                    connection = callback = scope = null;
                }
            };
        }
function (reqId, connection, callback) {
            // Interval for processing the response from the server
            var scope = this;
            connection.onreadystatechange = function () {
                if (connection && connection.readyState === 4) {
                    connection.onreadystatechange = Aria.empty;
                    if (!ariaCoreIO.pendingRequests[reqId]) {
                        return;
                    }
                    ariaCoreIO.clearTimeout(reqId);

                    scope._handleTransactionResponse(reqId, connection, callback);
                    connection = callback = scope = null;
                }
            };
        }
function ( reqId , connection , callback ) { // Interval for processing the response from the server var scope = this ; connection . onreadystatechange = function ( ) { if ( connection && connection . readyState === 4 ) { connection . onreadystatechange = Aria . empty ; if ( ! ariaCoreIO . pendingRequests [ reqId ] ) { return ; } ariaCoreIO . clearTimeout ( reqId ) ; scope . _handleTransactionResponse ( reqId , connection , callback ) ; connection = callback = scope = null ; } } ; }
A timer that binds a callback to the onreadystatechange event.
Upon readyState 4, handleTransactionResponse will process the response.
@param {Number} reqId Requst identifier
@param {Object} connection The connection object (XHR or ActiveX)
@param {aria.core.CfgBeans:Callback} callback Callback from aria.core.IO
@private
A timer that binds a callback to the onreadystatechange event . Upon readyState 4 handleTransactionResponse will process the response .