Skip to content

fix: CustomElement constructor for compatibility with other polyfills #27

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 2 commits into from
Aug 20, 2018

Conversation

zoeyfyi
Copy link
Contributor

@zoeyfyi zoeyfyi commented Aug 19, 2018

This PR makes vue-web-component-wrapper compatible with the document-register-element polyfill.

See WebReflection/document-register-element#148

src/index.js Outdated
constructor () {
super()
this.attachShadow({ mode: 'open' })
constructor (...args) {
Copy link
Member

Choose a reason for hiding this comment

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

I don't think ...args are necessary here, are they?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@yyx990803 yyx990803 merged commit 166f6fc into vuejs:master Aug 20, 2018
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.

2 participants