Commit 008a234b authored by Bertrand  NÉRON's avatar Bertrand NÉRON
Browse files

replace js loop on object by "traditional" js loop with an increment 
parent dd9a0abe
function(doc) {
var taxo = doc.replicon.taxonomy;
for( var i=0; i<taxo.length; i++ ){
emit(taxo[i], doc._id);
}
}
function(doc) {
for( i in doc.replicon.taxonomy ){
emit(doc.replicon.taxonomy[i], doc._id);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment