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

Function rmClass

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

Source from the content-addressed store, hash-verified

7125
7126 function classTest(cls) { return new RegExp("\\b" + cls + "\\b\\s*"); }
7127 function rmClass(node, cls) {
7128 var test = classTest(cls);
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 }

Callers 4

wrappingChangedFunction · 0.85
upFunction · 0.85
onBlurFunction · 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…