MCPcopy
hub / github.com/witheve/Eve / joinClasses

Function joinClasses

src/codemirror.js:8478–8483  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

8476 if (!classTest(cls).test(current)) node.className += (current ? " " : "") + cls;
8477 };
8478 function joinClasses(a, b) {
8479 var as = a.split(" ");
8480 for (var i = 0; i < as.length; i++)
8481 if (as[i] && !classTest(as[i]).test(b)) b += " " + as[i];
8482 return b;
8483 }
8484
8485 // WINDOW-WIDE EVENTS
8486

Callers 1

buildLineContentFunction · 0.85

Calls 2

classTestFunction · 0.85
testMethod · 0.45

Tested by

no test coverage detected