blob: b2179640ddfb5a2d3a531327cf9419f54d771aba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<!doctype html>
<meta charset="utf-8" />
<meta name="author" title="Keith Cirkel" href="mailto:wpt@keithcirkel.co.uk" />
<link rel="help" href="https://open-ui.org/components/invokers.explainer/" />
<div id="invoker"></div>
<script type="module">
const invokeEvent = new InvokeEvent('invoke', { bubbles: true });
document.body.addEventListener('invoke', e => {
e.invoker.toString();
});
invoker.addEventListener('invoke', e => {
e.invoker.toString();
});
invoker.dispatchEvent(invokeEvent);
await Promise.resolve();
invokeEvent.invoker.toString();
</script>
|