Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

defer getting computed direction until it's needed #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dbatiste
Copy link

@dbatiste dbatiste commented Oct 4, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants