Hello,

I seem to have run into a problem with Request.Queue.  I don't know if
it is a result of my tricky usage or if it is in fact a bug in
MooTools.  I have code that is trying to make a request queue for
things I need to get from the server, then instantiating the
Request.Queue class.  My code is like this:

<=======
var myRequests = {},
 listOfThings = $H(x:'blah',y:'blah',z:'blah');
listOfThings.each(function(item, key){
  myRequests[item] = new Request({url:'/server/side/script/url',
onSuccess:function(j){
    // do stuff with my j.
  }});
});
console.log(myRequests);
var requestQueue = new Request.Queue({
  requests:myRequests
}).send();
console.log(requestQueue);
======>
The console logs reveal that myRequests looks good, but requestQueue
never logs because I get the following JS error:
Permission denied for <http://dev.meruscase.com:8881> to get property
XMLHttpRequest.channel
[Break on this error] for (var p in object) unlinked[p] =
$unlink(object[p]);

I am using MooTools more 1.2.3.1 and core 1.2.4.  The error occurs in
$unlink.

I have a hunch that Request.Queue is unlinking the requests object,
however, certain XHR properties are not copy-able or even readable.  I
think that is why I'm getting this error.  If I'm right, then
Request.Queue should not be unlinking the request objects like this.

Thoughts?

Using FF 3.6.3 on Win7 w/ Firebug.

Reply via email to