mootools/mootools-core — Issue #2270: Repeated request with Request.Queue fails to send oncomplete event in Firefox
Author: skuwamoto
Created: 2012-02-02 18:39:03+00:00
State: open

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
r1.send();
r2.send();
r1.send();

// But this fails
r1.send();
});```