update returns this, save an extra line by returning update directly

This commit is contained in:
Adam Krebs
2013-02-13 01:28:14 -05:00
parent 5fcc433209
commit 1415361d11

View File

@@ -597,8 +597,7 @@
// Add a model, or list of models to the set.
add: function(models, options) {
options = _.extend({add: true, merge: false, remove: false}, options);
this.update(models, options);
return this;
return this.update(models, options);
},
// Remove a model, or a list of models from the set.