Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Focus.active(ownerDoc).filter((activeElm) => {
// Don't try to refocus the same element
return !Compare.eq(focusedElem, activeElm);
}).filter((activeElm) => {
// Only attempt to refocus if the current focus is the body or is in the header element
const isRoot = function (element) {
const name = Node.name(element);
return Compare.eq(element, body) || Arr.contains(rootElements, name);
};
const isOrContains = function (root: Element, elm: Element) {
return !NodeType.isRestrictedNode(elm.dom()) && (Compare.contains(root, elm) || Compare.eq(root, elm));
};
const isSameCell = (cellOpt: Option<element>, td: Element) => cellOpt.exists((currentTd) => Compare.eq(currentTd, td));
</element>
dockInfo.contextual.each((contextInfo) => {
if (Compare.eq(component.element(), simulatedEvent.event().target())) {
Class.remove(component.element(), contextInfo.transitionClass);
simulatedEvent.stop();
}
});
}),
const isCollapsed = function (sel) {
return Compare.eq(sel.start(), sel.finish()) && sel.soffset() === sel.foffset();
};
const isRanged = function (sel) {
return !Compare.eq(sel.start(), sel.finish()) || sel.soffset() !== sel.foffset();
};