Re: [cssom-view] why not MediaQueryList.onchange

On Tue, Apr 1, 2014 at 12:14 AM, Simon Pieters <simonp@opera.com> wrote:

> On Mon, 31 Mar 2014 23:49:20 +0200, Jochen Eisinger <eisinger@google.com>
> wrote:
>
>  I see, I guess I was confused by reading
>> https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryListListenerinstead
>> of the spec.
>>
>
> OK.
>
>
>  In any case, I still don't understand the benefit of using
>> addListener/removeListener over defining a change event?
>>
>
> I guess it was considered to be more light-weight. But I'm not sure of the
> history.
>
> As far as I can tell, WebKit/Blink support function or object with
> handleChange. Gecko supports only function (like the spec). Haven't tested
> IE.
>
> http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2909
>
> Given this, do you still prefer an event over dropping support for
> handleChange?


I will explore whether dropping support for handleChange will already
simplify our implementation significantly before continuing. Thanks for the
pointer!

best
-jochen


>
>
> --
> Simon Pieters
> Opera Software
>

Received on Monday, 31 March 2014 22:17:47 UTC