janmonschke/backbone-couchdb — pull request #43 by gijohnson-usgs (2012-05-02 14:01:07+00:00)
Title: Changed Backbone.couch_connector.update to use $.couch.db.updateDoc

Referencing Issue [#42](https://github.com/janmonschke/backbone-couchdb/issues/42), this change allows the use of CouchDB's update handlers.

Usage:
```
con.update(model, {
updateFun : "update_handler",
attr1 : attr1,
attr2 : attr2,
...
success : function(doc) {
...
},
error : function(doc) {
...
}
})
```

I'm also interested in having Backbone.couch_connector.create call this function if the user provides an "updateFun" option.