Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Two repeated requests in Request.Queue fails to call onComplete #1096

skuwamoto opened this Issue Feb 2, 2012 · 0 comments


None yet
1 participant

skuwamoto commented Feb 2, 2012

When running the following code, the onComplete doesn't fire for the last invocation of send() when run on Mac Firefox 9.0.1.

In general, it appears that this error occurs any time you make a repeated call to the same request object.

Note that this is not a server-side problem, because r1 and r2 make identical requests.

window.addEvent("domready", function()
    var q = new Request.Queue();

    var r1 = new Request({
        url: 'http://whatever',
        onComplete: function() { console.log('finished r1'); },

    var r2 = new Request({
        url: 'http://whatever',
        onComplete: function() { console.log('finished r2'); },

    q.addRequest("r1", r1);
    q.addRequest("r2", r2);

    // All of these succeeed

    // But this fails

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/359851-two-repeated-requests-in-request-queue-fails-to-call-oncomplete?utm_campaign=plugin&utm_content=tracker%2F22069&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F22069&utm_medium=issues&utm_source=github).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment