Bug 1283384 - Implement time picker UI w/ message passing: Fix eslint errors. r=eslint

This commit is contained in:
Sebastian Hengst 2016-10-25 09:32:56 +02:00
Родитель cdee94bb39
Коммит fecfd038fd
3 изменённых файлов: 7 добавлений и 8 удалений

Просмотреть файл

@ -15,7 +15,7 @@
function Spinner(props, context) {
this.context = context;
this._init(props);
};
}
{
const debug = 0 ? console.log.bind(console, '[spinner]') : function() {};

Просмотреть файл

@ -21,7 +21,7 @@
function TimeKeeper(props) {
this.props = props;
this.state = { time: new Date(0), ranges: {} };
};
}
{
const debug = 0 ? console.log.bind(console, '[timekeeper]') : function() {};

Просмотреть файл

@ -7,7 +7,7 @@
function TimePicker(context) {
this.context = context;
this._attachEventListeners();
};
}
{
const debug = 0 ? console.log.bind(console, '[timepicker]') : function() {};
@ -102,12 +102,11 @@ function TimePicker(context) {
getDisplayString: hour => {
if (format == "24") {
return numberFormat(hour);
} else {
// Hour 0 in 12 hour format is displayed as 12.
const hourIn12 = hour % DAY_PERIOD_IN_HOURS;
return hourIn12 == 0 ? numberFormat(12)
: numberFormat(hourIn12);
}
// Hour 0 in 12 hour format is displayed as 12.
const hourIn12 = hour % DAY_PERIOD_IN_HOURS;
return hourIn12 == 0 ? numberFormat(12)
: numberFormat(hourIn12);
}
}, this.context),
minute: new Spinner({