MCPcopy Create free account
hub / github.com/sql-js/sql.js / addClass

Function addClass

GUI/codemirror/lib/codemirror.js:7131–7133  ·  view source on GitHub ↗
(node, cls)

Source from the content-addressed store, hash-verified

7129 if (test.test(node.className)) node.className = node.className.replace(test, "");
7130 }
7131 function addClass(node, cls) {
7132 if (!classTest(cls).test(node.className)) node.className += " " + cls;
7133 }
7134 function joinClasses(a, b) {
7135 var as = a.split(" ");
7136 for (var i = 0; i < as.length; i++)

Callers 4

wrappingChangedFunction · 0.85
showCrossHairFunction · 0.85
onFocusFunction · 0.85
codemirror.jsFile · 0.85

Calls 1

classTestFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…