Added inserting library subtrees as character property subtrees

This commit is contained in:
Stefan Zermatten
2019-11-05 10:56:04 +02:00
parent 79a4488a28
commit ae0b060f01
6 changed files with 144 additions and 21 deletions

View File

@@ -26,6 +26,7 @@ export function compareOrder(docA, docB){
// Go through their ancestors after the root, and find the first order
// difference
// TODO ancestors don't store order yet
let i, difference;
const length = Math.min(docA.ancestors.length, docB.ancestors.length);
for (i = 1; i < length; i++){