summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2014-05-28 15:24:34 -0300
committerdrebs <drebs@leap.se>2014-05-28 15:24:34 -0300
commit1427c60d7dff3fcfa6c30e16fd9815fd4787b458 (patch)
treed71830893fe4f927b092a5a70a7b8222f61ea8e5 /common
parentbb8edd8655a1723c8944c898b1249099759ebf59 (diff)
Fix stuff from kali's review.
Diffstat (limited to 'common')
-rw-r--r--common/src/leap/soledad/common/ddocs/syncs/views/changes_to_return/map.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/src/leap/soledad/common/ddocs/syncs/views/changes_to_return/map.js b/common/src/leap/soledad/common/ddocs/syncs/views/changes_to_return/map.js
index 220345dc..04ceb2ec 100644
--- a/common/src/leap/soledad/common/ddocs/syncs/views/changes_to_return/map.js
+++ b/common/src/leap/soledad/common/ddocs/syncs/views/changes_to_return/map.js
@@ -6,6 +6,7 @@ function(doc) {
emit([source_replica_uid, 0], null);
else if (changes.length == 0)
emit([source_replica_uid, 0], []);
+ else
for (var i = 0; i < changes['changes_to_return'].length; i++)
emit(
[source_replica_uid, i],