From bbeb909bdc233a2e874e5855ef69d70493db12d4 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Sun, 15 Aug 2021 21:07:40 +0530 Subject: [PATCH] Use createEnum Signed-off-by: RMidhunSuresh --- src/platform/web/ui/general/ItemRange.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/platform/web/ui/general/ItemRange.js b/src/platform/web/ui/general/ItemRange.js index ab6b23b0..53627aa4 100644 --- a/src/platform/web/ui/general/ItemRange.js +++ b/src/platform/web/ui/general/ItemRange.js @@ -14,10 +14,9 @@ See the License for the specific language governing permissions and limitations under the License. */ -export class ScrollDirection { - static get downwards() { return 1; } - static get upwards() { return -1; } -} +import {createEnum} from "../../../../utils/enum.js"; + +export const ScrollDirection = createEnum("upwards", "downwards"); export class ItemRange { constructor(topCount, renderCount, bottomCount) {