Update app.js

This commit is contained in:
iwangu 2015-08-16 21:48:13 +02:00
parent e38154f73a
commit 338ceb853a
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ var validators = {
Formsy.addValidationRule('isYearOfBirth', function (values, value) {
value = parseInt(value);
if (typeof value !== 'number' || value !== value) {
if (typeof value !== 'number') {
return false;
}
return value < currentYear && value > currentYear - 130;