MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / removeClass

Function removeClass

libs/leaflet/leaflet-src.js:2446–2452  ·  view source on GitHub ↗
(el, name)

Source from the content-addressed store, hash-verified

2444 // @function removeClass(el: HTMLElement, name: String)
2445 // Removes `name` from the element's class attribute.
2446 function removeClass(el, name) {
2447 if (el.classList !== undefined) {
2448 el.classList.remove(name);
2449 } else {
2450 setClass(el, trim((' ' + getClass(el) + ' ').replace(' ' + name + ' ', ' ')));
2451 }
2452 }
2453
2454 // @function setClass(el: HTMLElement, name: String)
2455 // Sets the element's class.

Callers 1

leaflet-src.jsFile · 0.85

Calls 4

setClassFunction · 0.85
getClassFunction · 0.85
trimFunction · 0.70
removeMethod · 0.45

Tested by

no test coverage detected