W3C home > Mailing lists > Public > www-style@w3.org > June 2012

Re: [CSSOM View] MediaQueryList as EventTarget

From: Kenneth Rohde Christiansen <kenneth.christiansen@gmail.com>
Date: Fri, 15 Jun 2012 09:41:14 +0200
Message-ID: <CAEC208sk8Umz5Y+p2KTGkjxpcPwuH4r0fV_RZGWO4NyKOYUoGw@mail.gmail.com>
To: Dean Jackson <dino@apple.com>
Cc: www-style list <www-style@w3.org>, Anne van Kesteren <annevk@opera.com>, luiz.agostini@gmail.com
Adding Luiz Agostini to cc, as I believe he was the one adding this to the
spec

Kenneth

On Fri, Jun 15, 2012 at 3:25 AM, Dean Jackson <dino@apple.com> wrote:

> The MediaQueryList interface has addListener and removeListener methods,
> that each take a MediaQueryListListener (which is a pretty cool name when
> you think about it).
>
> MediaQueryListListener has a single handleChange() method.
>
> Is there a good reason why MediaQueryList isn't just an EventTarget? It
> makes more sense to me, and would allow you to have a single controller
> object to implement handleEvent for all your code. As it currently stands,
> it is a weird handleChange method.
>
> Dean
>
>
>
>


-- 
Kenneth Rohde Christiansen
Senior Engineer
Nokia Mobile Phones, Browser / WebKit team
Phone  +45 4093 0598 / E-mail kenneth at webkit. <http://gmail.com>org

http://codeposts.blogspot.com ﹆﹆﹆
Received on Friday, 15 June 2012 07:42:04 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:55 GMT