diff --git a/src/functions.js b/src/functions.js index d631b89..24d009b 100644 --- a/src/functions.js +++ b/src/functions.js @@ -21,7 +21,7 @@ export const debounce = (callback, wait, immediate = false) => { ** Throttle function with a delay ** (Throttling enforces a maximum number of times a function can be called over time, as in 'execute this function at most once every 100 milliseconds) */ -export function throttled (fn, delay) { +export function throttle (fn, delay) { let lastCall = 0 return function (...args) { const now = (new Date).getTime() diff --git a/src/organisms/Locations.svelte b/src/organisms/Locations.svelte index 35b80c9..25e6fbb 100644 --- a/src/organisms/Locations.svelte +++ b/src/organisms/Locations.svelte @@ -1,6 +1,7 @@