MCPcopy Index your code
hub / github.com/shipshapecode/tether / removeClass

Function removeClass

src/js/utils/classes.js:30–36  ·  view source on GitHub ↗
(el, name)

Source from the content-addressed store, hash-verified

28}
29
30export function removeClass(el, name) {
31 name.split(' ').forEach((cls) => {
32 if (cls.trim()) {
33 el.classList.remove(cls);
34 }
35 });
36}
37
38export function updateClasses(el, add, all) {
39 // Of the set of 'all' classes, we need the 'add' classes, and only the

Callers 5

classes.spec.jsFile · 0.90
disableMethod · 0.90
_removeClassesMethod · 0.90
updateClassesFunction · 0.85
drop.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…