Skip to content
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

web: make applyAttrs in the second overloaded TagElement nullable to be consistent with the first one #1814

Merged
merged 1 commit into from
Feb 14, 2022

Conversation

ShreckYe
Copy link
Contributor

@ShreckYe ShreckYe commented Feb 9, 2022

From what I understand, for non-inline functions passing null is a bit more efficient than passing an empty lambda, and that's why most functions in this library have the signature attrs: AttrBuilderContext<HTMLElement>? = null. Then there is no reason the second overloaded TagElement function shouldn't be like that, so I guess this is a small mistake that should be fixed.

@hfhbd
Copy link
Contributor

hfhbd commented Feb 10, 2022

I accidentally created the same PR #1822

@eymar
Copy link
Collaborator

eymar commented Feb 14, 2022

thanks! lgtm

@eymar eymar merged commit 7a9776c into JetBrains:master Feb 14, 2022
eymar pushed a commit that referenced this pull request Feb 14, 2022
… to be consistent with the first one (#1814)

(cherry picked from commit 7a9776c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants