vendor/assets/javascripts/marionette_dust/backbone.js in marionette_dust-0.0.1 vs vendor/assets/javascripts/marionette_dust/backbone.js in marionette_dust-0.0.2
- old
+ new
@@ -743,10 +743,10 @@
for (i = 0, l = toAdd.length; i < l; i++) {
(model = toAdd[i]).trigger('add', model, this, options);
}
if (sort || (order && order.length)) this.trigger('sort', this, options);
}
-
+
// Return the added (or merged) model (or models).
return singular ? models[0] : models;
},
// When you have more items than you want to add or remove individually,