(el)
| 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). |
no outgoing calls
no test coverage detected