src/aria/core/IO.js
function (id, timeout, callback) {
            if (timeout > 0) {
                this._timeOut[id] = setTimeout(function () {
                    // You won't believe this, but sometimes IE forgets to remove the timeout even if
                    // we explicitely called a clearTimeout. Double check that the timeout is valid
                    if ((module.exports)._timeOut[id]) {
                        (module.exports).abort({
                            redId : id,
                            getStatus : callback
                        }, null, true);
                    }
                }, timeout);
            }
        }
function (id, timeout, callback) {
            if (timeout > 0) {
                this._timeOut[id] = setTimeout(function () {
                    // You won't believe this, but sometimes IE forgets to remove the timeout even if
                    // we explicitely called a clearTimeout. Double check that the timeout is valid
                    if ((module.exports)._timeOut[id]) {
                        (module.exports).abort({
                            redId : id,
                            getStatus : callback
                        }, null, true);
                    }
                }, timeout);
            }
        }
function ( id , timeout , callback ) { if ( timeout > 0 ) { this . _timeOut [ id ] = setTimeout ( function ( ) { // You won't believe this, but sometimes IE forgets to remove the timeout even if // we explicitely called a clearTimeout. Double check that the timeout is valid if ( ( module . exports ) . _timeOut [ id ] ) { ( module . exports ) . abort ( { redId : id , getStatus : callback } , null , true ) ; } } , timeout ) ; } }
Set a timeout for a given request. If not canceled this method calls the abort function and the callback
after 'timeout' milliseconds
@param {Number} id Request id
@param {Number} timeout Timer in milliseconds
@param {aria.core.CfgBeans:Callback} callback Should be already normalized
Set a timeout for a given request . If not canceled this method calls the abort function and the callback after timeout milliseconds