Sha256: aaf7caeccf512f83639b3e45ffe280e0e31e9cd000234d64c03fe3a3c8761d91
Contents?: true
Size: 418 Bytes
Versions: 14
Compression:
Stored size: 418 Bytes
Contents
// @ts-check /** * * @param {string} name * @param {{[key: string]: any}} detail * @param {Document | HTMLElement} [target] */ function raiseEvent(name, detail, target) { if (!target) { target = document; } const event = new CustomEvent(name, { detail: detail}); document.dispatchEvent(event); console.log('Event Raised', name, detail); } export { raiseEvent };
Version data entries
14 entries across 14 versions & 1 rubygems