MCPcopy Create free account
hub / github.com/breck7/scroll / addClass

Function addClass

external/.scrollLibs.js:618–623  ·  view source on GitHub ↗
(node, cls)

Source from the content-addressed store, hash-verified

616 }
617
618 function addClass(node, cls) {
619 var current = node.className
620 if (!classTest(cls).test(current)) {
621 node.className += (current ? " " : "") + cls
622 }
623 }
624 function joinClasses(a, b) {
625 var as = a.split(" ")
626 for (var i = 0; i < as.length; i++) {

Callers 5

onFocusFunction · 0.85
initScrollbarsFunction · 0.85
showCrossHairFunction · 0.85
wrappingChangedFunction · 0.85
addEditorMethodsFunction · 0.85

Calls 1

classTestFunction · 0.85

Tested by

no test coverage detected