documentcloud/backbone — pull request #1439 by taterbase (2012-06-22 07:40:06+00:00)
Title: Add functionality for passing success/error callback hash exclusively for Model.save().

The save function is much like the other sync calls where it accepts a success/error callback hash however it requires at least a null for the the attributes field. I feel that setting the attributes before calling save is a common enough task that we should be able to pass just the callback hash just like we do with fetch and destroy. I also think it could help potential new users avoid a common pitfall (one I fell into myself).

New and old syntax both work

**Old:**
```javascript
Model.save(null, {
success: function(model, response){
//success
},
error: function(model, response){
//error
}
}
```

**New:**
```javascript
Model.save( {
success: function(model, response){
//success
},
error: function(model, response){
//error
}
}
```