MCPcopy Create free account
hub / github.com/GoogleTrends/data / addClass

Function addClass

Pikaday/pikaday.js:88–93  ·  view source on GitHub ↗
(el, cn)

Source from the content-addressed store, hash-verified

86 },
87
88 addClass = function(el, cn)
89 {
90 if (!hasClass(el, cn)) {
91 el.className = (el.className === '') ? cn : el.className + ' ' + cn;
92 }
93 },
94
95 removeClass = function(el, cn)
96 {

Callers 1

pikaday.jsFile · 0.85

Calls 1

hasClassFunction · 0.85

Tested by

no test coverage detected