From 898b8bd83080f7040811320c3037a64eb7cb7c4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Thu, 27 Feb 2020 23:05:55 +0100 Subject: [PATCH] Change name of function --- src/functions.js | 2 +- src/organisms/Locations.svelte | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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 @@