зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1283384 - Implement time picker UI w/ message passing: Fix eslint errors. r=eslint
This commit is contained in:
Родитель
cdee94bb39
Коммит
fecfd038fd
|
@ -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({
|
||||
|
|
Загрузка…
Ссылка в новой задаче