MCPcopy Create free account
hub / github.com/microsoft/SandDance / getEventTargetDocument

Function getEventTargetDocument

docs/external/js/react-dom.development.js:9761–9763  ·  view source on GitHub ↗

* Get document associated with the event target. * * @param {object} nativeEventTarget * @return {Document}

(eventTarget)

Source from the content-addressed store, hash-verified

9759
9760
9761 function getEventTargetDocument(eventTarget) {
9762 return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument;
9763 }
9764 /**
9765 * Poll selection to see whether it's changed.
9766 *

Callers 2

constructSelectEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected