I'm attempting to bulk delete a collection of backbone models like so...
collection.each(function(model, i){
model.destroy();
});
I'm finding that when the each loop contains model.destroy(), it stops after a count of 10. If I run it again, it stops a 5. The times after 3.. 2.. and then 1.
If I replace the model.destroy() with console.log(i), the loop runs the length of the collection.
Is this an intentional limitation within Backbone to keep you from deleting 1000 records in one shot or a browser limitation on the number of relatively simultaneous DELETE methods?