MediaQueryList

extern class js.html.MediaQueryListAvailable in js
DRAFT
This page is not complete.

A MediaQueryList object maintains a list of media queries on a document , and handles sending notifications to listeners when the media queries on the document change.

This makes it possible to observe a document to detect when its media queries change, instead of polling the values periodically, if you need to programmatically detect changes to the values of media queries on a document.



Documentation for this class was provided by MDN.
var matches(default,null) : Booltrue if the document currently matches the media query list; otherwise false. Read only. var media(default,null) : StringThe serialized media query list. function addListener( listener : MediaQueryListListener ) : Void function removeListener( listener : MediaQueryListListener ) : Void
version #19229, modified 2013-05-08 11:07:49 by api
0 comment