[Pkg-javascript-commits] [backbone] 23/28: Added 'groupBy' to underscore proxy methods

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:01:26 UTC 2014


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

js pushed a commit to tag 0.5.3
in repository backbone.

commit 3b6864835df80a90e93ad4dfd9cb296f414d4fd0
Author: Asan Usipov <discopalevo at gmail.com>
Date:   Thu Aug 4 21:25:43 2011 +0400

    Added 'groupBy' to underscore proxy methods
---
 backbone.js | 2 +-
 index.html  | 7 ++++---
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/backbone.js b/backbone.js
index df6f538..69ea96d 100644
--- a/backbone.js
+++ b/backbone.js
@@ -641,7 +641,7 @@
   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'];
+    'first', 'rest', 'last', 'without', 'indexOf', 'lastIndexOf', 'isEmpty', 'groupBy'];
 
   // Mix in each Underscore method as a proxy to `Collection#models`.
   _.each(methods, function(method) {
diff --git a/index.html b/index.html
index 1b72816..2c5e633 100644
--- a/index.html
+++ b/index.html
@@ -207,7 +207,7 @@
       <li>– <a href="#Collection-constructor">constructor / initialize</a></li>
       <li>– <a href="#Collection-models">models</a></li>
       <li>– <a href="#Collection-toJSON">toJSON</a></li>
-      <li>– <a href="#Collection-Underscore-Methods"><b>Underscore Methods (25)</b></a></li>
+      <li>– <a href="#Collection-Underscore-Methods"><b>Underscore Methods (26)</b></a></li>
       <li>– <a href="#Collection-add">add</a></li>
       <li>– <a href="#Collection-remove">remove</a></li>
       <li>– <a href="#Collection-get">get</a></li>
@@ -1113,9 +1113,9 @@ alert(JSON.stringify(collection));
 </pre>
 
     <p id="Collection-Underscore-Methods">
-      <b class="header">Underscore Methods (25)</b>
+      <b class="header">Underscore Methods (26)</b>
       <br />
-      Backbone proxies to <b>Underscore.js</b> to provide 25 iteration functions
+      Backbone proxies to <b>Underscore.js</b> to provide 26 iteration functions
       on <b>Backbone.Collection</b>. They aren't all documented here, but
       you can take a look at the Underscore documentation for the full details…
     </p>
@@ -1135,6 +1135,7 @@ alert(JSON.stringify(collection));
       <li><a href="http://documentcloud.github.com/underscore/#max">max</a></li>
       <li><a href="http://documentcloud.github.com/underscore/#min">min</a></li>
       <li><a href="http://documentcloud.github.com/underscore/#sortBy">sortBy</a></li>
+      <li><a href="http://documentcloud.github.com/underscore/#groupBy">groupBy</a></li>
       <li><a href="http://documentcloud.github.com/underscore/#sortedIndex">sortedIndex</a></li>
       <li><a href="http://documentcloud.github.com/underscore/#toArray">toArray</a></li>
       <li><a href="http://documentcloud.github.com/underscore/#size">size</a></li>

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