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

defineEventProperty is not accepting array of strings #63

Closed
compulim opened this issue Aug 20, 2019 · 0 comments · Fixed by #64
Closed

defineEventProperty is not accepting array of strings #63

compulim opened this issue Aug 20, 2019 · 0 comments · Fixed by #64

Comments

@compulim
Copy link
Owner

Today, the following code is no-op.

defineEventProperty(Foo.prototype, ['change', 'click']);

That means, the following code never fire.

new Foo().onchange = () => console.log('Fired');

We should change it to

defineEventProperty(Foo.prototype, 'change');
defineEventProperty(Foo.prototype, 'click');
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 a pull request may close this issue.

1 participant