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

Function joinClasses

static/editor.md/lib/codemirror/lib/codemirror.js:8205–8210  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

8203 if (!classTest(cls).test(current)) node.className += (current ? " " : "") + cls;
8204 };
8205 function joinClasses(a, b) {
8206 var as = a.split(" ");
8207 for (var i = 0; i < as.length; i++)
8208 if (as[i] && !classTest(as[i]).test(b)) b += " " + as[i];
8209 return b;
8210 }
8211
8212 // WINDOW-WIDE EVENTS
8213

Callers 1

buildLineContentFunction · 0.70

Calls 1

classTestFunction · 0.70

Tested by

no test coverage detected