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

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/MediaQueryListListener  
> instead
> 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?

-- 
Simon Pieters
Opera Software

Received on Monday, 31 March 2014 22:13:48 UTC