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.
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 withrtl-mirroring
would perform thegetComputedStyle
call for all icons in the set, regardless of whether the icon requires mirroring in an RTL context.