MCPcopy
hub / github.com/angular/angular / createEvt

Function createEvt

packages/zone.js/test/browser/browser.spec.ts:2415–2419  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2413 const button = document.createElement('button');
2414 document.body.append(button);
2415 const createEvt = () => {
2416 const evt = document.createEvent('Event');
2417 evt.initEvent('click', true, true);
2418 return evt;
2419 };
2420 let logs: string[] = [];
2421 const onClickHandler = () => logs.push('onclick');
2422 button.onclick = onClickHandler;

Callers 1

browser.spec.tsFile · 0.85

Calls 1

initEventMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…