[Pkg-javascript-commits] [backbone] 07/23: add 'contains' alias for 'include'

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:00:43 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 0.5.1
in repository backbone.

commit c4872c433bf72cb3998692592af64cec9d3a6296
Author: braddunbar <dunbarb2 at gmail.com>
Date:   Thu Jun 30 16:59:18 2011 -0400

    add 'contains' alias for 'include'
---
 backbone.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backbone.js b/backbone.js
index 09cb4b7..63c42b5 100644
--- a/backbone.js
+++ b/backbone.js
@@ -639,7 +639,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`.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git



More information about the Pkg-javascript-commits mailing list