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

Method dispatchEvent

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

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by 4

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