| OLD | NEW |
| 1 | 1 Polymer({ |
| 2 | 2 |
| 3 Polymer({ | |
| 4 | |
| 5 is: 'iron-media-query', | 3 is: 'iron-media-query', |
| 6 | 4 |
| 7 properties: { | 5 properties: { |
| 8 | 6 |
| 9 /** | 7 /** |
| 10 * The Boolean return value of the media query. | 8 * The Boolean return value of the media query. |
| 11 */ | 9 */ |
| 12 queryMatches: { | 10 queryMatches: { |
| 13 type: Boolean, | 11 type: Boolean, |
| 14 value: false, | 12 value: false, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 39 } | 37 } |
| 40 this._mq = window.matchMedia(query); | 38 this._mq = window.matchMedia(query); |
| 41 this._mq.addListener(this._mqHandler); | 39 this._mq.addListener(this._mqHandler); |
| 42 this.queryHandler(this._mq); | 40 this.queryHandler(this._mq); |
| 43 }, | 41 }, |
| 44 | 42 |
| 45 queryHandler: function(mq) { | 43 queryHandler: function(mq) { |
| 46 this._setQueryMatches(mq.matches); | 44 this._setQueryMatches(mq.matches); |
| 47 } | 45 } |
| 48 | 46 |
| 49 }); | 47 }); |
| 50 | |
| OLD | NEW |