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