Commit f9cfbd97 authored by Tristan Cavelier's avatar Tristan Cavelier

getWinnerRevisionFromDocumentTree not only returns the last revision

parent 66d5003a
...@@ -156,11 +156,7 @@ jIO.addStorageType('revision', function (spec, my) { ...@@ -156,11 +156,7 @@ jIO.addStorageType('revision', function (spec, my) {
} }
}; };
search(document_tree, 0); search(document_tree, 0);
// xxx shouldn't this return only a single revision return result;
// from the document tree? Currently multiple revisions
// are passed back
// return result;
return [result[0]];
}; };
/** /**
......
Markdown is supported
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