Joined April 2014

Miguel Valencia

San Francisco, CA

I've had luck saving an entire collection at once without sending X number of HTTP requests by wrapping my collection in a model.

var MyCollectionWrapper = Backbone.Model.extend({
url: "/bulkupload",

//something to save?
toJSON: function() {
return this.model.toJSON(); // where model is the collection class YOU defined above


Check here for the original answer:

39 Karma
0 Total ProTip Views