Skip to content

Make connectedCallback property writable #10

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

Merged
merged 1 commit into from
Mar 27, 2021
Merged

Make connectedCallback property writable #10

merged 1 commit into from
Mar 27, 2021

Conversation

lcmen
Copy link
Contributor

@lcmen lcmen commented Mar 27, 2021

Hi!
First of all, thank you for this great library! It's really helpful for initializing WebComponent's child elements. Unfortunately, while playing with Github's Catalyst framework, I've noticed it's not possible to change a connectedCallback method from the HTMLParsedElement. Catalyst relies on overriding connectedCallback via regular assignment operator so to make those two play nice together, I had to to change the connectedCallback property to writable.

To make it easier to use HTMLParsedElement with 3rd party libraries, I'd like to suggest adding writable: true to the connectedCallback property.

PS. In this PR, I've also fixed npm script to start server.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 28

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 0.0%

Totals Coverage Status
Change from base Build 27: 0%
Covered Lines: 0
Relevant Lines: 0

💛 - Coveralls

@WebReflection WebReflection merged commit 42ab050 into WebReflection:master Mar 27, 2021
@WebReflection
Copy link
Owner

it's up, thanks 👋

@lcmen
Copy link
Contributor Author

lcmen commented Mar 27, 2021

Thank you!

@lcmen lcmen deleted the make-property-writable branch March 27, 2021 19:16
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.

3 participants