/[couchdb]/design/reblog/views/by_feed/reduce.js
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /design/reblog/views/by_feed/reduce.js

Parent Directory Parent Directory | Revision Log Revision Log


Revision 37 - (hide annotations)
Tue Apr 28 22:26:57 2009 UTC (15 years, 1 month ago) by dpavlin
File MIME type: application/javascript
File size: 212 byte(s)
drop in map/reduce javascript function which work on data imported from reblog
1 dpavlin 37 function (k, v, c) {
2     if ( c ) {
3     a = v.shift();
4     //log( a ); log( v );
5     while ( v.length ) {
6     //log( v.length );
7     e = v.shift();
8     //log( e );
9     a.concat( e );
10     }
11     return a;
12     } else {
13     return v;
14     }
15     }

  ViewVC Help
Powered by ViewVC 1.1.26