MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / CustomEvent

Function CustomEvent

src/polyfill.js:5–15  ·  view source on GitHub ↗
(event, params)

Source from the content-addressed store, hash-verified

3 return;
4
5 const CustomEvent = (event, params) => {
6 params = params || { bubbles: false, cancelable: false, detail: null };
7 let evt = document.createEvent('CustomEvent');
8 evt.initCustomEvent(
9 event,
10 params.bubbles,
11 params.cancelable,
12 params.detail,
13 );
14 return evt;
15 };
16
17 window.CustomEvent = CustomEvent;
18})();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…