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

Why is Performance an EventTarget? #40

Closed
JosephPecoraro opened this issue Jan 28, 2017 · 2 comments
Closed

Why is Performance an EventTarget? #40

JosephPecoraro opened this issue Jan 28, 2017 · 2 comments

Comments

@JosephPecoraro
Copy link

Why is Performance an EventTarget?

interface Performance : EventTarget {
    ...
};

I didn't see any events that would be dispatched on Performance, so registering listeners would seem unnecessary. Is this in preparation for the future or are events dispatched in a related spec?

@JosephPecoraro JosephPecoraro changed the title Why is Performance an EventTarget? Why is Performance an EventTarget? Jan 28, 2017
@igrigorik
Copy link
Member

https://w3c.github.io/resource-timing/#dom-performance-onresourcetimingbufferfull is one example.. As such, I believe we need the EventTarget?

@JosephPecoraro
Copy link
Author

Ahh, that makes total sense. Closing, thanks!

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