MCPcopy Index your code
hub / github.com/csev/py4e / addClass

Function addClass

tools/pythonauto/static/codemirrorepl/codemirror.js:7073–7075  ·  view source on GitHub ↗
(node, cls)

Source from the content-addressed store, hash-verified

7071 if (test.test(node.className)) node.className = node.className.replace(test, "");
7072 }
7073 function addClass(node, cls) {
7074 if (!classTest(cls).test(node.className)) node.className += " " + cls;
7075 }
7076 function joinClasses(a, b) {
7077 var as = a.split(" ");
7078 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