MCPcopy Index your code
hub / github.com/SortableJS/Sortable / getParentOrHost

Function getParentOrHost

src/utils.js:40–44  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

38}
39
40function getParentOrHost(el) {
41 return (el.host && el !== document && el.host.nodeType && el.host !== el)
42 ? el.host
43 : el.parentNode;
44}
45
46function closest(/**HTMLElement*/el, /**String*/selector, /**HTMLElement*/ctx, includeCTX) {
47 if (el) {

Callers 2

Sortable.jsFile · 0.90
closestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…