MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / CustomEvent

Function CustomEvent

assets/js/rotating_nav_anim.js:228–233  ·  view source on GitHub ↗
( event, params )

Source from the content-addressed store, hash-verified

226if ( typeof window.CustomEvent !== "function" ) {
227
228 function CustomEvent ( event, params ) {
229 params = params || { bubbles: false, cancelable: false, detail: undefined };
230 var evt = document.createEvent( 'CustomEvent' );
231 evt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail );
232 return evt;
233 }
234
235 CustomEvent.prototype = window.Event.prototype;
236

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected