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.3.0
0.2.1
0.2.0
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Tiny turboboosted JavaScript library for creating user interfaces.
redom.js.org
redom/redom
redom
/
esm
/
dispatch.js
8 lines
(6 loc)
•
240 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
import
{ getEl }
from
"./util.js"
;
export
function
dispatch
(
child, data, eventName =
"redom"
) {
const
childEl =
getEl
(child);
const
event =
new
CustomEvent
(eventName, {
bubbles
:
true
,
detail
: data }); childEl.
dispatchEvent
(event); }