PolymerElements / iron-iconset-svg

Represents a source of icons expressed as a collection of inline SVGs
https://www.webcomponents.org/element/PolymerElements/iron-iconset-svg
37 stars 34 forks source link

defer getting computed direction until it's needed #56

Open dbatiste opened 7 years ago

dbatiste commented 7 years ago

This change defers the window.getComputedStyle(target)['direction'] so that this check can be avoided for icons that will not be mirrored. In the original implementation, an iconset with rtl-mirroring would perform the getComputedStyle call for all icons in the set, regardless of whether the icon requires mirroring in an RTL context.