documentcloud/backbone — Issue #691: overriding backbone.sync
Author: nXqd
Created: 2011-10-27 03:07:32+00:00
State: open

I try to override backbone.sync and in backbone.js I use model.add to add some objects but it doesn't work, it doesn't contain any object when it gets out of backbone.sync. I'm new to backbone, I hope someone can help me with this problem :)

Some of my code:

```javascript
if (method == "read") {
$.getJSON(myUrl + '?jsoncallback=?', function(data) {
model.add(data.locationSet);
});
}
```