Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ console.log(u1.name());
//prints _foo_

//Invoke validations and wait for the validations to fulfill
u1.validate(function() {
if u1.isValid {
//validated, perform business logic
u1.validate().then(function () {
if (u1.isValid) {
//validated, perform business logic
} else {
//validation failed, dump validation errors to the console
console.log(p1.errors)
//validation failed, dump validation errors to the console
console.log(u1.errors);
}
});

Expand Down