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

Function getClass

libs/leaflet/leaflet-src.js:2467–2474  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

2465 // @function getClass(el: HTMLElement): String
2466 // Returns the element's class.
2467 function getClass(el) {
2468 // Check if the element is an SVGElementInstance and use the correspondingElement instead
2469 // (Required for linked SVG elements in IE11.)
2470 if (el.correspondingElement) {
2471 el = el.correspondingElement;
2472 }
2473 return el.className.baseVal === undefined ? el.className : el.className.baseVal;
2474 }
2475
2476 // @function setOpacity(el: HTMLElement, opacity: Number)
2477 // Set the opacity of an element (including old IE support).

Callers 3

hasClassFunction · 0.85
addClassFunction · 0.85
removeClassFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected