refactor(tooltip-definition): use arrow functions

This commit is contained in:
Eric Liu 2022-02-01 07:06:49 -08:00
commit c4743708e7

View file

@ -25,13 +25,9 @@
/** Obtain a reference to the button HTML element */ /** Obtain a reference to the button HTML element */
export let ref = null; export let ref = null;
function hide() { const hide = () => (open = false);
open = false;
}
function show() { const show = () => (open = true);
open = true;
}
</script> </script>
<svelte:window <svelte:window