MCPcopy Index your code
hub / github.com/DHTMLX/gantt / addClass

Function addClass

samples/common/codehighlight/codemirror.js:129–132  ·  view source on GitHub ↗
(node, cls)

Source from the content-addressed store, hash-verified

127 }
128
129 function addClass(node, cls) {
130 var current = node.className;
131 if (!classTest(cls).test(current)) { node.className += (current ? " " : "") + cls; }
132 }
133 function joinClasses(a, b) {
134 var as = a.split(" ");
135 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