refactoring

This commit is contained in:
frankknoll
2023-01-30 11:35:57 +01:00
parent 84781f7715
commit 8207c29d9c

View File

@@ -71,7 +71,12 @@ class HistogramView {
}); });
sliderElement.noUiSlider.on( sliderElement.noUiSlider.on(
'update', 'update',
([start, endInclusive]) => onUpdate({ start: parseInt(start, 10), endInclusive: parseInt(endInclusive, 10) })); ([start, endInclusive]) =>
onUpdate(
{
start: parseInt(start, 10),
endInclusive: parseInt(endInclusive, 10)
}));
if (height != null) { if (height != null) {
sliderElement.style.height = height; sliderElement.style.height = height;
} }