style: js is hard

This commit is contained in:
Adam Bradley
2016-11-15 13:58:10 -06:00
parent c72b67d376
commit a7042e37c2

View File

@ -756,12 +756,12 @@ export class DateTime extends Ion implements AfterContentInit, ControlValueAcces
const max = this._max = parseDate(this.max);
if (min.year > max.year) {
min.year = this._min.year = (max.year - 100);
min.year = max.year - 100;
} else if (min.year === max.year) {
if (min.month > max.month) {
min.month = this._min.month = 1;
min.month = 1;
} else if (min.month === max.month && min.day > max.day) {
min.day = this._min.day = 1;
min.day = 1;
}
}