-
Notifications
You must be signed in to change notification settings - Fork 34
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
CLA signed by General Electric, I'm now part of the appropriate google group ([email protected]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comment.
iron-fit-behavior.html
Outdated
@@ -249,7 +249,11 @@ | |||
|
|||
attached: function() { | |||
// Memoize this to avoid expensive calculations & relayouts. | |||
this._isRTL = window.getComputedStyle(this).direction == 'rtl'; | |||
// Make sure we do it only once | |||
if(typeof this._isRTL === 'undefined') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: space between if and (
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the contribution!
Thanks for the quick merge 💯 |
Fixing #68 by making sure window.getComputedStyle is only called once