[Pkg-javascript-commits] [backbone] 191/281: Fixes #702: adds 'initial' and 'shuffle' to Backbone collections.

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:02:11 UTC 2014


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

js pushed a commit to tag 0.9.0
in repository backbone.

commit a78be62684c451d38a21ed2bbd0aee88c86d152e
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Fri Jan 13 13:30:53 2012 -0500

    Fixes #702: adds 'initial' and 'shuffle' to Backbone collections.
---
 backbone.js | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/backbone.js b/backbone.js
index 37626fc..01b5026 100644
--- a/backbone.js
+++ b/backbone.js
@@ -618,10 +618,11 @@
   });
 
   // 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',
-    'contains', 'invoke', 'max', 'min', 'sortBy', 'sortedIndex', 'toArray', 'size',
-    'first', 'rest', 'last', 'without', 'indexOf', 'lastIndexOf', 'isEmpty', 'groupBy'];
+  var methods = ['forEach', 'each', 'map', 'reduce', 'reduceRight', 'find',
+    'detect', 'filter', 'select', 'reject', 'every', 'all', 'some', 'any',
+    'include', 'contains', 'invoke', 'max', 'min', 'sortBy', 'sortedIndex',
+    'toArray', 'size', 'first', 'initial', 'rest', 'last', 'without', 'indexOf',
+    'shuffle', 'lastIndexOf', 'isEmpty', 'groupBy'];
 
   // Mix in each Underscore method as a proxy to `Collection#models`.
   _.each(methods, function(method) {

-- 
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