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

posts/2023-07-18-classes-super-and-you/ #113

Open
utterances-bot opened this issue Jul 26, 2023 · 1 comment
Open

posts/2023-07-18-classes-super-and-you/ #113

utterances-bot opened this issue Jul 26, 2023 · 1 comment

Comments

@utterances-bot
Copy link

Classes, Super, and You

Last week Chris and Dave mentioned that they don’t get why you have to call super when you’re in a class.

https://alex.party/posts/2023-07-18-classes-super-and-you/

Copy link

Now if we only could remove the line:
// Always call super first in constructor
From just about every Web Components Blog post...

And even the MDN documentation is wrong on this one:
https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_custom_elements

You can put anything you want before super(), You just can't use the 'this' scope

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

No branches or pull requests

2 participants