Skip to content

Commit 81b8218

Browse files
committed
simplify example.
1 parent f9d3bf0 commit 81b8218

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

README.MD

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,7 @@ v.addProvider('classicmovie', (value, element, params) => {
131131
// Unlike the original, data-val-classicmovie-year is bound automatically to params['year'] as string!
132132
let year = parseInt(params.year);
133133
let date = new Date(value);
134-
135-
let genreDropdown = document.getElementById('Genre') as HTMLSelectElement;
136-
let genre = select.options[select.selectedIndex].value;
134+
let genre = (document.getElementById('Genre') as HTMLSelectElement).value;
137135

138136
if (genre && genre.length > 0 && genre === '0') {
139137
return date.getFullYear() <= year;

0 commit comments

Comments
 (0)