Permalink
Browse files

Some docs

  • Loading branch information...
1 parent 07082c3 commit f40cfd866b6d54a1eeca9ede50e75b59ac547abe @masylum masylum committed Oct 17, 2010
Showing with 5 additions and 5 deletions.
  1. +5 −5 README.md
View
@@ -173,7 +173,11 @@ Returns true if the attributed changed
attrChanged(attr)
-Returns true if the attributed failed a validation
+Adds an error to your validator. Accept dot notation to add nested errors.
+
+ addError(field, value)
+
+Returns true if the attributed failed a validation. Accept dot notation to check nested errors.
hasError(field)
@@ -197,10 +201,6 @@ It fills your validator with errors if any of the queries fail (good to avoid du
validateQuery(validations, callback)
-Adds an error to your validator
-
- addError(name, value)
-
Example using some of the validator features:
var User = Model.extend({

0 comments on commit f40cfd8

Please sign in to comment.