dominictarr/crdt — pull request #19 by Raynos (2013-01-23 02:56:56+00:00)
Title: Fix duplicates in crdt.Set

`crdt.Set` can have duplicate rows in it if you do

```js
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.

This patch ensures the row isn't in the set before it's added.