documentcloud/backbone — Issue #724: Model validation prevents setting other attributes in some cases
Author: anton-107
Created: 2011-11-06 08:45:34+00:00
State: open

Given the following model:
```javascript
var Topic = Backbone.Model.extend({
validate : function (attrs) {
if(!attrs.name) {
return "topic name shouldn't be empty";
}
}
});
```

and trying to set it's attribute:
```javascript
topic.set({ someOtherAttr : true });
```
will silently failed because of validation

This will work:

```javascript
topic.set({ someOtherAttr : true, name : topic.get("name") });
```
but it's very inconvinient