Skip to content

Commit

Permalink
Merge pull request jashkenas#448 from braddunbar/contains
Browse files Browse the repository at this point in the history
add 'contains' alias for 'include'
  • Loading branch information
jashkenas committed Jul 5, 2011
2 parents 10230e4 + c4872c4 commit 961d599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backbone.js
Expand Up @@ -640,7 +640,7 @@
// Underscore methods that we want to implement on the Collection.
var methods = ['forEach', 'each', 'map', 'reduce', 'reduceRight', 'find', 'detect',
'filter', 'select', 'reject', 'every', 'all', 'some', 'any', 'include',
'invoke', 'max', 'min', 'sortBy', 'sortedIndex', 'toArray', 'size',
'contains', 'invoke', 'max', 'min', 'sortBy', 'sortedIndex', 'toArray', 'size',
'first', 'rest', 'last', 'without', 'indexOf', 'lastIndexOf', 'isEmpty'];

// Mix in each Underscore method as a proxy to `Collection#models`.
Expand Down

0 comments on commit 961d599

Please sign in to comment.