Re: [CSSOM View] MediaQueryList as EventTarget

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 UTC