MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / isNodeName

Function isNodeName

scripts/smoothScroll.js:708–710  ·  view source on GitHub ↗
(el, tag)

Source from the content-addressed store, hash-verified

706 window.removeEventListener(type, fn, arg || false);
707 }
708 function isNodeName(el, tag) {
709 return el && (el.nodeName || "").toLowerCase() === tag.toLowerCase();
710 }
711 function directionCheck(x, y) {
712 x = x > 0 ? 1 : -1;
713 y = y > 0 ? 1 : -1;

Callers 3

wheelFunction · 0.85
keydownFunction · 0.85
mousedownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected