Showing
1 changed file
with
2 additions
and
4 deletions
@@ -41,8 +41,7 @@ var date = { | @@ -41,8 +41,7 @@ var date = { | ||
41 | dayNum = 31; | 41 | dayNum = 31; |
42 | 42 | ||
43 | var select, | 43 | var select, |
44 | - i, | ||
45 | - isYearFour; | 44 | + i; |
46 | 45 | ||
47 | year = parseInt(year, 10); | 46 | year = parseInt(year, 10); |
48 | month = parseInt(month, 10); | 47 | month = parseInt(month, 10); |
@@ -65,8 +64,7 @@ var date = { | @@ -65,8 +64,7 @@ var date = { | ||
65 | dayNum = 30; | 64 | dayNum = 30; |
66 | } else if (month === 2) { | 65 | } else if (month === 2) { |
67 | dayNum = 28; | 66 | dayNum = 28; |
68 | - isYearFour = (year % 4) === 0; | ||
69 | - if (isYearFour && (year % 100 !== 0 || year % 400 === 0)) { | 67 | + if ((year % 4) === 0 && (year % 100 !== 0 || year % 400 === 0)) { |
70 | dayNum = 29; | 68 | dayNum = 29; |
71 | } | 69 | } |
72 | } | 70 | } |
-
Please register or login to post a comment