Skip to content

Commit

Permalink
Bumped version to 0.5.3 and updated changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
thedersen committed Jul 16, 2012
1 parent 98a9c9e commit c6db623
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 22 deletions.
26 changes: 7 additions & 19 deletions README.md
@@ -1,4 +1,4 @@
# Backbone.Validation v0.5.2
# Backbone.Validation v0.5.3

A validation plugin for [Backbone.js](http://documentcloud.github.com/backbone) that validates both your model as well as form input. Inspired by [Backbone.ModelBinding](http://github.com/derickbailey/backbone.modelbinding), and another implementation with a slightly different approach than mine at [Backbone.Validations](http://github.com/n-time/backbone.validations).

Expand Down Expand Up @@ -50,24 +50,7 @@ See the **built-in validators** section in this readme for a list of the validat

### Nested validation

You can add a new `validation` attribute to handle objects within your model. It can be reused, and nested as deep as you like.

#### Example

```js
var SomeModel = Backbone.Model.extend({
validation: {
image: {
required: true,
validation: {
src: {
required: true
}
}
}
}
});
```
TODO: Describe the preferred ways of doing this.

### Validation binding

Expand Down Expand Up @@ -650,6 +633,11 @@ Basic behaviour:

#### v0.5.2

* *BREAKING:* Nested validation is no longer supported. See the documentation for preferred ways of acheiving this.
* Arrays with attribute names in the events now contains the name of all attributes with error.

#### v0.5.2

* Fixed equalTo validator when setting both values at the same time (Fixes #27)
* Fixed removing invalid class in view when validating dependent attributes, and changing one makes the other valid

Expand Down
4 changes: 2 additions & 2 deletions backbone.validation.js
@@ -1,4 +1,4 @@
// Backbone.Validation v0.5.2
// Backbone.Validation v0.5.3
//
// Copyright (C)2011-2012 Thomas Pedersen
// Distributed under MIT License
Expand Down Expand Up @@ -155,7 +155,7 @@ Backbone.Validation = (function(Backbone, _, undefined) {
};

return {
version: '0.5.2',
version: '0.5.3',

configure: function(options) {
_.extend(defaultOptions, options);
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
l{
"author": "Thomas Pedersen (http://thedersen.com/)",
"name": "backbone-validation",
"version": "0.5.2",
"version": "0.5.3",
"url": "http://thedersen.github.com/backbone.validation",
"repository": "git://github.com/thedersen/backbone.validation.git",
"scripts": {
Expand Down

0 comments on commit c6db623

Please sign in to comment.