diff --git a/README.md b/README.md index c5a2816b..b589df67 100644 --- a/README.md +++ b/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). @@ -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 @@ -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 diff --git a/backbone.validation.js b/backbone.validation.js index c6652186..85c9ecd2 100644 --- a/backbone.validation.js +++ b/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 @@ -155,7 +155,7 @@ Backbone.Validation = (function(Backbone, _, undefined) { }; return { - version: '0.5.2', + version: '0.5.3', configure: function(options) { _.extend(defaultOptions, options); diff --git a/package.json b/package.json index 3e8918a7..8959aaff 100644 --- a/package.json +++ b/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": {