MCPcopy
hub / github.com/csev/py4e / joinClasses

Function joinClasses

tools/pythonauto/static/codemirrorepl/codemirror.js:7076–7081  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

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++)
7079 if (as[i] && !classTest(as[i]).test(b)) b += " " + as[i];
7080 return b;
7081 }
7082
7083 // FEATURE DETECTION
7084

Callers 1

buildLineContentFunction · 0.85

Calls 2

classTestFunction · 0.85
splitMethod · 0.80

Tested by

no test coverage detected