mirror of
https://github.com/jaandrle/deka-dom-el
synced 2025-07-01 20:32:13 +02:00
⚡ dispatch
This commit is contained in:
@ -11,6 +11,7 @@ import { oAssign, onAbort } from './helpers.js';
|
||||
* @returns {Function} Function that dispatches the event
|
||||
*/
|
||||
export function dispatchEvent(name, options, host){
|
||||
if(typeof options==="function"){ host= options; options= null; }
|
||||
if(!options) options= {};
|
||||
return function dispatch(element, ...d){
|
||||
if(host){
|
||||
|
Reference in New Issue
Block a user