- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Mon, 31 Mar 2014 14:07:39 -0700
- To: Jochen Eisinger <eisinger@google.com>
- Cc: www-style list <www-style@w3.org>
On Mon, Mar 31, 2014 at 1:51 PM, Jochen Eisinger <eisinger@google.com> wrote: > Hey, > > I wonder why MediaQueryList defines its own listener interface > (MediaQueryListListener) instead of just defining an change event on the > MediaQueryList itself? > > The reason I ask is because MediaQueryListListener is a pretty unique > snowflake in the web exposed APIs which makes it very costly to implement > and somewhat unintuitive to use. Wow, I hadn't realized how bad that was. Yeah, we should fire a "change" event or something on it, and define addListener(...) as just calling addEventListener("change", ...) (and similarly with removeListener). ~TJ
Received on Monday, 31 March 2014 21:08:26 UTC