MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / addClass

Function addClass

lib/web/CodeMirror/src/util/dom.js:82–85  ·  view source on GitHub ↗
(node, cls)

Source from the content-addressed store, hash-verified

80}
81
82export function addClass(node, cls) {
83 let current = node.className
84 if (!classTest(cls).test(current)) node.className += (current ? " " : "") + cls
85}
86export function joinClasses(a, b) {
87 let as = a.split(" ")
88 for (let i = 0; i < as.length; i++)

Callers 5

initScrollbarsFunction · 0.90
onFocusFunction · 0.90
wrappingChangedFunction · 0.90
showCrossHairFunction · 0.90
methods.jsFile · 0.90

Calls 2

classTestFunction · 0.70
testMethod · 0.45

Tested by

no test coverage detected