MCPcopy Create free account
hub / github.com/editablejs/editable / getDefaultView

Function getDefaultView

packages/models/src/utils/dom.ts:26–28  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

24 * Returns the host window of a DOM node
25 */
26export const getDefaultView = (value: any): Window | null => {
27 return (value && value.ownerDocument && value.ownerDocument.defaultView) || null
28}
29
30/**
31 * Check if a DOM node is a comment node.

Callers 3

ContentEditableFunction · 0.90
isDOMNodeFunction · 0.85
isDOMSelectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…