rename transaction._replacedItems to transaction._mergeStructs
This commit is contained in:
@@ -56,7 +56,7 @@ export const splitItem = (transaction, leftItem, diff) => {
|
||||
rightItem.right.left = rightItem
|
||||
}
|
||||
// right is more specific.
|
||||
transaction._replacedItems.add(rightItem)
|
||||
transaction._mergeStructs.add(rightItem.id)
|
||||
return rightItem
|
||||
}
|
||||
|
||||
@@ -430,7 +430,7 @@ export class AbstractItem extends AbstractStruct {
|
||||
}
|
||||
}
|
||||
replaceStruct(store, this, r)
|
||||
transaction._replacedItems.add(r)
|
||||
transaction._mergeStructs.add(r.id)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
* @module structs
|
||||
*/
|
||||
|
||||
// TODO: ItemBinary should be able to merge with right (similar to other items). Or the other items (ItemJSON) should not be able to merge - extra byte + consistency
|
||||
|
||||
import {
|
||||
AbstractItem,
|
||||
AbstractItemRef,
|
||||
|
||||
Reference in New Issue
Block a user