Closed Raynos closed 11 years ago
crdt.Set can have duplicate rows in it if you do
crdt.Set
doc.add({ id: "foo", type: "in-set" }) doc.add({ id: "foo", type: "in-set" })
Both of those additions trigger the doc.sets.emit("type") event thus getting the same row in a set twice.
doc.sets.emit("type")
This patch ensures the row isn't in the set before it's added.
thanks, merged into 3.4.2
crdt.Set
can have duplicate rows in it if you doBoth of those additions trigger the
doc.sets.emit("type")
event thus getting the same row in a set twice.This patch ensures the row isn't in the set before it's added.