3 is: 'iron-media-query',
8 * The Boolean return value of the media query.
18 * The CSS media query to evaluate.
22 observer: 'queryChanged'
28 this._mqHandler = this.queryHandler.bind(this);
31 queryChanged: function(query) {
33 this._mq.removeListener(this._mqHandler);
35 if (query[0] !== '(') {
36 query = '(' + query + ')';
38 this._mq = window.matchMedia(query);
39 this._mq.addListener(this._mqHandler);
40 this.queryHandler(this._mq);
43 queryHandler: function(mq) {
44 this._setQueryMatches(mq.matches);