Clones an SVGElement while preserving type information.
(svg: SVGElement)
| 730 | |
| 731 | /** Clones an SVGElement while preserving type information. */ |
| 732 | function cloneSvg(svg: SVGElement): SVGElement { |
| 733 | return svg.cloneNode(true) as SVGElement; |
| 734 | } |
| 735 | |
| 736 | /** Returns the cache key to use for an icon namespace and name. */ |
| 737 | function iconKey(namespace: string, name: string) { |
no outgoing calls
no test coverage detected