-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(google-maps): clean up internal setup #21079
Conversation
Reworks the internal setup of the `google-map` component so that we don't have to declare observables for each input.
14ca61f
to
6e944ee
Compare
this._setSize(); | ||
} | ||
|
||
const googleMap = this.googleMap; |
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.
All things being equal, I think we may as well just continue to reference this.googleMap instead of reassigning it to a local variable.
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.
It's a bit of a micro-optimization, but I wrote it this way because it'll minify better with most common minifiers that don't do property renaming.
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.
Can you add a comment saying that was the reason for doing this?
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
this._setSize(); | ||
} | ||
|
||
const googleMap = this.googleMap; |
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.
Can you add a comment saying that was the reason for doing this?
Reworks the internal setup of the `google-map` component so that we don't have to declare observables for each input. (cherry picked from commit 28c36f8)
Reworks the internal setup of the `google-map` component so that we don't have to declare observables for each input. (cherry picked from commit 28c36f8)
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Reworks the internal setup of the
google-map
component so that we don't have to declare observables for each input.