janmonschke/backbone-couchdb — Issue #20: Problem with the error handler on update error
Author: nicogranelli
Created: 2011-10-14 02:51:54+00:00
State: open

I'm using this project for the first time. This are the steps to reproduce the error:

1) fetch a model
2) change the model in futon (to trigger an error for conflict)
3) save the model
4) the error callback is called, but with wrong arguments. I used a console.log(arguments) inside the callback, and I get these 3:
* The model
* undefined
* and Object with success and error, both functions

According to http://documentcloud.github.com/backbone/#Model-save, the error callback should get the model and the response.

NOTE: Maybe this is because couchdb, and response can't be returned, I'm not sure, I don't know this project or couchdb well enough to be sure.