Skip to content

Comments

Use arrow functions for anonymous functions where possible (part #9) [Last part!]#19253

Merged
Josh-Cena merged 121 commits intomdn:mainfrom
teoli2003:function-arrow-9
Aug 9, 2022
Merged

Use arrow functions for anonymous functions where possible (part #9) [Last part!]#19253
Josh-Cena merged 121 commits intomdn:mainfrom
teoli2003:function-arrow-9

Conversation

@teoli2003
Copy link
Contributor

Arrow functions are shorter and easier to read (but don't bind this).

This is the last part (we skipped the Learning Area though)

@github-actions github-actions bot added Content:CSS Cascading Style Sheets docs Content:HTML Hypertext Markup Language docs Content:HTTP HTTP docs Content:Learn Learning area docs Content:Other Any docs not covered by another "Content:" label Content:SVG SVG docs Content:wasm WebAssembly docs Content:WebAPI Web API docs labels Aug 7, 2022
@github-actions

This comment was marked as resolved.

@teoli2003 teoli2003 requested a review from Josh-Cena August 9, 2022 09:03
Comment on lines 357 to 358
() => {
const XHRSubmit = (function () {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be wrapped in a function? It used to be top-level

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I click Edit file, I don't see this line 357 anymore. I think this is fixed.

Copy link
Member

@Josh-Cena Josh-Cena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewing the diff is giving me a stomachache...

All clear now. LGTM

@Josh-Cena Josh-Cena merged commit 6d697b8 into mdn:main Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:CSS Cascading Style Sheets docs Content:HTML Hypertext Markup Language docs Content:HTTP HTTP docs Content:Learn Learning area docs Content:Other Any docs not covered by another "Content:" label Content:SVG SVG docs Content:wasm WebAssembly docs Content:WebAPI Web API docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants