documentcloud/backbone — pull request #1457 by codyrioux (2012-06-26 20:54:25+00:00)
Title: Add an isolatedValidation option for the _validate method.

This pull request adds an isolatedValidation option to the _validate method, when set the _validate method does not merge the attrs attribute with the attributes currently set in the model. This feature has its uses in validation libraries such as [backbone.validation](http://thedersen.github.com/backbone.validation) that advocate using a callback method to update the DOM when an attribute validates. Without this flag DOM fields containing invalid data that has not been pushed to the model (which contains valid data) will be re-validated and updated to reflect a valid status despite containing a valid value.

For further details as to why this is useful see [backbone.validation issue 54](https://github.com/thedersen/backbone.validation/issues/54).

This change is otherwise rather benign for those who do not need it as it doesn't affect anything unless the user explicitly sets the flag. This is my first pull request to any github repository ever, so if I've botched any part of the code or process please let me know. :)

Thoughts?

Thank you.