Change name of function
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<script>
|
||||
import { onMount } from 'svelte'
|
||||
import { flip } from 'svelte/animate'
|
||||
import { fly, fade } from 'svelte/transition'
|
||||
import { locations, countries, continents } from '../store'
|
||||
import { crossfadeReceive, crossfadeSend } from '../animations'
|
||||
import * as fn from '../functions'
|
||||
@@ -25,7 +26,7 @@
|
||||
|
||||
// Filter by continent
|
||||
// Detects if click difference if too short with a throttled function
|
||||
const toggleContinents = fn.throttled((event, continent) => {
|
||||
const toggleContinents = fn.throttle((event, continent) => {
|
||||
continentsFiltered = (!continent) ? [...continentsToDisplay] : [continent]
|
||||
}, transitionDuration)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user