MCPcopy Create free account
hub / github.com/angular/angular / dispatchEvent

Method dispatchEvent

packages/platform-server/src/domino_adapter.ts:106–115  ·  view source on GitHub ↗
(el: Node, evt: any)

Source from the content-addressed store, hash-verified

104 }
105
106 override dispatchEvent(el: Node, evt: any) {
107 el.dispatchEvent(evt);
108
109 // Dispatch the event to the window also.
110 const doc = el.ownerDocument || el;
111 const win = (doc as any).defaultView;
112 if (win) {
113 win.dispatchEvent(evt);
114 }
115 }
116
117 override getUserAgent(): string {
118 return 'Fake user agent';

Calls

no outgoing calls

Tested by 4

testDuplicateFunction · 0.36
testAddRemoveFunction · 0.36
testDifferentFunction · 0.36
testPassiveFunction · 0.36