MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / Ke

Function Ke

codebase/dhtmlxscheduler.es.js:1158–1173  ·  view source on GitHub ↗
(e, i)

Source from the content-addressed store, hash-verified

1156 return document.head.createShadowRoot || document.head.attachShadow;
1157}
1158function Ke(e, i) {
1159 if (e.closest)
1160 return e.closest(i);
1161 if (e.matches || e.msMatchesSelector || e.webkitMatchesSelector) {
1162 var t = e;
1163 if (!document.documentElement.contains(t))
1164 return null;
1165 do {
1166 if ((t.matches || t.msMatchesSelector || t.webkitMatchesSelector).call(t, i))
1167 return t;
1168 t = t.parentElement || t.parentNode;
1169 } while (t !== null && t.nodeType === 1);
1170 return null;
1171 }
1172 return console.error("Your browser is not supported"), null;
1173}
1174function Ge(e) {
1175 if (!e || !gt())
1176 return document.body;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected