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

Function classList

static/nprogress/nprogress.js:462–464  ·  view source on GitHub ↗

* (Internal) Gets a space separated list of the class names on the element. * The list is wrapped with a single space on each end to facilitate finding * matches within the list.

(element)

Source from the content-addressed store, hash-verified

460 */
461
462 function classList(element) {
463 return (' ' + (element.className || '') + ' ').replace(/\s+/gi, ' ');
464 }
465
466 /**
467 * (Internal) Removes an element from the DOM.

Callers 3

hasClassFunction · 0.85
addClassFunction · 0.85
removeClassFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected