W3C home > Mailing lists > Public > www-style@w3.org > March 2014

why not MediaQueryList.onchange

From: Jochen Eisinger <eisinger@google.com>
Date: Mon, 31 Mar 2014 22:51:17 +0200
Message-ID: <CALjhuidkKXPycmjbm47nAnGG3bPXp1cQZwJgPqWoEP4F=vEiww@mail.gmail.com>
To: www-style@w3.org

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.

Received on Monday, 31 March 2014 20:52:04 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:20 UTC