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

Feature Request: EventTarget Polyfill #252

Open
RiZKiT opened this issue Jun 26, 2019 · 2 comments
Open

Feature Request: EventTarget Polyfill #252

RiZKiT opened this issue Jun 26, 2019 · 2 comments
Labels
feature New feature request library Relates to an Origami library

Comments

@RiZKiT
Copy link

RiZKiT commented Jun 26, 2019

What

Adding a polyfill for EventTarget constructor, an EventEmitter for Javascript objects (e.g. for CustomElements or every other object), as a counterpart to DOM events.

Details

I stumbled upon EventTarget while reading https://medium.com/@zandaqo/eventtarget-the-future-of-javascript-event-systems-205ae32f5e6b.
It's not supported in IE and Edge, as can be seen here https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/EventTarget#Browser_compatibility.

Additional information

There is already a polyfill available at https://developer.mozilla.org/en-US/docs/Web/API/EventTarget#Simple_implementation_of_EventTarget and a copy of that as a npm module https://github.com/mattkrick/event-target-polyfill, https://www.npmjs.com/package/@mattkrick/event-target-polyfill.

@Vanilagy
Copy link

Vanilagy commented Aug 5, 2019

+1, please look into this.

@JakeChampion JakeChampion added this to incoming in Origami ✨ Feb 26, 2020
@JakeChampion JakeChampion added feature New feature request library Relates to an Origami library labels Mar 24, 2020
@mhassan1
Copy link
Collaborator

EventTarget seems to be fully supported in IE9+. Is this still needed?

@robertboulton robertboulton removed this from Backlog in Origami ✨ Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request library Relates to an Origami library
Projects
None yet
Development

No branches or pull requests

4 participants