batmanjs/batman — pull request #1102 by rmosolgo (2014-07-24 21:30:09+00:00)
Title: hasMany decoder removes records that aren't found in the JSON

Here's the usecase:

- There's a `parent` like this:

```javascript
{ id: 1,
children: [
{id: 101, name: "child 1"},
{id: 102, name: "child 2"}
]
}
```
- I have 2 browsers open
- In one browser, I `parent.get('children.first').destroy()`
- In the other browser, I `parent.load()`
- The server responds with:

```javascript
{ id: 1,
children: [
{id: 102, name: "child 2"}
]
}
```

What should happen?

With this PR, `child #101` will be removed from the association set.

(Although I guess it's still in the loaded set, huh ...)