Is there an existing association between a Backbone Collection and the XHR object created when you execute a .fetch()
on it?
I would like to do something like this:
collection = new Backbone.Collection;
xhrObj = collection.fetch();
xhrObj.parent == collection; //true
The larger goal is for me to check to see if there are any pending .fetch()
's for a specific collection. If there is another way to do this in Backbone, please let me know. I figured I would just store XHR objects and check if any of the ones that have not finished are associated with the collection.