⚡ dispatch

This commit is contained in:
jaandrle committed 2025-03-05 14:39:19 +01:00
1 parent e1f2b32736
commit 1c5f0dab5e
14 files changed
+42 -11

No files matched your search

+1
View File
@@ -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){