mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-08 03:00:26 -04:00
Merge pull request #448 from braddunbar/contains
add 'contains' alias for 'include'
This commit is contained in:
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user