theironcook/Backbone.ModelBinder — pull request #45 by codyrioux (2012-06-27 15:43:02+00:00)
Title: Added options parameter which is forwarded to backbone set

I've added an options parameter to both the constructor and the bind method on Backbone.ModelBinder that will be forwarded along to the set method on backbone models. This allows users to specify some settings to forward to backbone when the model binder performs its actions.

Some example usage either when creating an instance of ModelBinder or calling the bind method:

```javascript
var myView = Backbone.view.extend({
initialize: {
this._modelBinder = new Backbone.ModelBinder({silent: true});
this._attributeBindings = {};
},
render: function() {
// Perform some rendering
var options = { moreOptionsHere: true };
this._modelBinder.bind(this.model, this.el, this._attributeBindings, options);
}
});
```