Skip to content

Commit

Permalink
Merge pull request jashkenas#865 from braddunbar/add-remove-docs
Browse files Browse the repository at this point in the history
`added`/`removed` should be `add`/`remove`
  • Loading branch information
jashkenas committed Jan 18, 2012
2 parents f417ddd + b2a2d6f commit 197861c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backbone.js
Expand Up @@ -468,7 +468,7 @@
},

// Add a model, or list of models to the set. Pass **silent** to avoid
// firing the `added` event for every new model.
// firing the `add` event for every new model.
add : function(models, options) {
var i, index, length;
options || (options = {});
Expand Down Expand Up @@ -500,7 +500,7 @@
},

// Remove a model, or a list of models from the set. Pass silent to avoid
// firing the `removed` event for every model removed.
// firing the `remove` event for every model removed.
remove : function(models, options) {
var i, index, model;
options || (options = {});
Expand Down Expand Up @@ -561,7 +561,7 @@

// When you have more items than you want to add or remove individually,
// you can reset the entire set with a new list of models, without firing
// any `added` or `removed` events. Fires `reset` when finished.
// any `add` or `remove` events. Fires `reset` when finished.
reset : function(models, options) {
models || (models = []);
options || (options = {});
Expand Down

0 comments on commit 197861c

Please sign in to comment.