()
| 11793 | // size helpers |
| 11794 | |
| 11795 | function getSizeIndex() { |
| 11796 | // find index of widest matching media query |
| 11797 | return sizes.map(function (size) { |
| 11798 | return size.mq && window.matchMedia('(min-width: ' + size.mq + ')').matches; |
| 11799 | }).indexOf(true); |
| 11800 | } |
| 11801 | |
| 11802 | function setSizeIndex() { |
| 11803 | sizeIndex = getSizeIndex(); |
no outgoing calls
no test coverage detected