MCPcopy Create free account
hub / github.com/TruthHun/BookStack / joinClasses

Function joinClasses

static/mergely/lib/codemirror.js:8446–8451  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

8444 if (!classTest(cls).test(current)) node.className += (current ? " " : "") + cls;
8445 };
8446 function joinClasses(a, b) {
8447 var as = a.split(" ");
8448 for (var i = 0; i < as.length; i++)
8449 if (as[i] && !classTest(as[i]).test(b)) b += " " + as[i];
8450 return b;
8451 }
8452
8453 // WINDOW-WIDE EVENTS
8454

Callers 1

buildLineContentFunction · 0.70

Calls 1

classTestFunction · 0.70

Tested by

no test coverage detected