@yuebai008/cli
Version:
Command line interface for rapid qg-minigame development
1 lines • 265 B
JavaScript
export function removeEventListeners(e){for(const t of e)t.eventTarget.removeEventListener(t.eventType,t.listener,t.thisObject);e.splice(0)}export function fireEvent(e,t={},n=window){const o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:t});n.dispatchEvent(o)}