Skip to content

Commit

Permalink
Update validate.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Luptowski committed Apr 6, 2014
1 parent de52d65 commit 046e267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
if (field.depends.call(this, field)) {
this._validateField(field);
}
} else if (field.depends && typeof field.depends === "string") {
} else if (field.depends && typeof field.depends === "string" && this.conditionals[field.depends]) {
if (this.conditionals[field.depends].call(this,field)) {
this._validateField(field);
}
Expand Down

0 comments on commit 046e267

Please sign in to comment.