mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-04-20 02:37:23 -04:00
fix lint error
eslint is strict about jsdoc and line breaks on a even one-line nested function, which is annoyingly verbose. Use an arrow function instead.
This commit is contained in:
parent
1fe5ef8e94
commit
74fe33ec36
@ -85,7 +85,7 @@ export default class NVRSettingsView {
|
|||||||
wireControls_() {
|
wireControls_() {
|
||||||
const videoLengthEl = $(`#${this.ids_.videoLenId}`);
|
const videoLengthEl = $(`#${this.ids_.videoLenId}`);
|
||||||
|
|
||||||
function normalize(v) { return v == 'infinite' ? Infinity : Number(v); }
|
const normalize = (v) => v == 'infinite' ? Infinity : Number(v);
|
||||||
this.videoLength_ = normalize(this.findSelectedOrFirst_(videoLengthEl));
|
this.videoLength_ = normalize(this.findSelectedOrFirst_(videoLengthEl));
|
||||||
videoLengthEl.change((e) => {
|
videoLengthEl.change((e) => {
|
||||||
this.videoLength_ = normalize(e.currentTarget.value);
|
this.videoLength_ = normalize(e.currentTarget.value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user