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 */
export let ref = null;
function hide() {
open = false;
}
const hide = () => (open = false);
function show() {
open = true;
}
const show = () => (open = true);
</script>
<svelte:window