From 666158fbf39cea6e953bd773a3300bc252e007a6 Mon Sep 17 00:00:00 2001 From: Vadim Date: Wed, 20 Jan 2021 10:51:36 +0300 Subject: [PATCH] Rename handlers --- src/CarouselChild.svelte | 2 -- src/ImageCarousel.svelte | 11 +++++------ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/CarouselChild.svelte b/src/CarouselChild.svelte index 7241390..6ef5a71 100644 --- a/src/CarouselChild.svelte +++ b/src/CarouselChild.svelte @@ -15,7 +15,5 @@ \ No newline at end of file diff --git a/src/ImageCarousel.svelte b/src/ImageCarousel.svelte index 90fb58d..89de19b 100644 --- a/src/ImageCarousel.svelte +++ b/src/ImageCarousel.svelte @@ -4,7 +4,7 @@ import { store } from './store' /** - * Enable Next/Previos arrows + * Enable Next/Prev arrows */ export let arrows = true; @@ -14,11 +14,10 @@ children = contentContainerElement.children }) - function handleLeftClick() { + function handlePrevClick() { store.prev() } - // TODO: rename to handleNextClick - function handleRightClick() { + function handleNextClick() { store.next() } @@ -28,7 +27,7 @@
<
{/if} @@ -39,7 +38,7 @@
>
{/if}