Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix ESLint violation#19

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
koddsson merged 1 commit intomainfromfix-eslint-violation
May 4, 2021
Merged

Fix ESLint violation#19

koddsson merged 1 commit intomainfromfix-eslint-violation
May 4, 2021

Conversation

@koddsson
Copy link
Contributor

Use theconnectedCallback function instead of a constructor.

For Custom Elements, the constructor method can be a little unwieldy to use; it is called as soon as the class is instantiated with document.createElement which will be before the element has been appended to the DOM. It can be simpler to put code within the connectedCallback which is fired when the element has been appended into the DOM.

https://github.com/github/eslint-plugin-custom-elements/blob/main/docs/rules/no-constructor.md

@koddssonkoddsson requested a review froma team as acode ownerApril 30, 2021 16:07
@koddssonkoddsson merged commit51e801b intomainMay 4, 2021
@koddssonkoddsson deleted the fix-eslint-violation branchMay 4, 2021 09:17
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@manuelpuyolmanuelpuyolmanuelpuyol approved these changes

@smocklesmockleAwaiting requested review from smocklesmockle was automatically assigned from github/web-systems-reviewers

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@koddsson@manuelpuyol

[8]ページ先頭

©2009-2025 Movatter.jp