More correct syntax

More correct and relevant syntax, so people don't confuse it with event.target (which is basically same as event.detail) when using TypeScript
pull/8021/head
OffeeX 4 years ago committed by GitHub
parent 91f8764145
commit 0466bf6475
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,7 +2,7 @@
import Inner from './Inner.svelte'; import Inner from './Inner.svelte';
function handleMessage(event) { function handleMessage(event) {
alert(event.detail.text); alert(event.target.text);
} }
</script> </script>

Loading…
Cancel
Save