MCPcopy Index your code
hub / github.com/angular/angular / removeEventDispatchScript

Function removeEventDispatchScript

packages/platform-server/src/utils.ts:88–90  ·  view source on GitHub ↗

* Removes inlined event dispatch script if it exists. * See the `EVENT_DISPATCH_SCRIPT_ID` const docs for additional info.

(doc: Document)

Source from the content-addressed store, hash-verified

86 * See the `EVENT_DISPATCH_SCRIPT_ID` const docs for additional info.
87 */
88function removeEventDispatchScript(doc: Document) {
89 findEventDispatchScript(doc)?.remove();
90}
91
92/**
93 * Annotate nodes for hydration and remove event dispatch script when not needed.

Callers 1

prepareForHydrationFunction · 0.85

Calls 2

findEventDispatchScriptFunction · 0.85
removeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…