Skip to content

Commit 8b487b7

Browse files
committed
word.
1 parent f803bba commit 8b487b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.MD

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,13 @@ public class ClassicMovieAttribute : ValidationAttribute, IClientModelValidator
122122
import { ValidationService } from 'aspnet-validation';
123123
let v = new ValidationService();
124124

125-
// Must be done BEFORE bootstrap() is called!
126125
v.addProvider('classicmovie', (value, element, params) => {
127126
if (!value) {
128127
// Let [Required] handle validation error for empty input...
129128
return true;
130129
}
131130

132-
// data-val-classicmovie-year is bound automatically to params!
131+
// Unlike the original, data-val-classicmovie-year is bound automatically to params['year'] as string!
133132
let year = parseInt(params.year);
134133
let date = new Date(value);
135134

0 commit comments

Comments
 (0)