{"action":"closed","issue":{"url":"https://api.github.com/repos/chemerisuk/better-dom/issues/23","labels_url":"https://api.github.com/repos/chemerisuk/better-dom/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/chemerisuk/better-dom/issues/23/comments","events_url":"https://api.github.com/repos/chemerisuk/better-dom/issues/23/events","html_url":"https://github.com/chemerisuk/better-dom/issues/23","id":44224039,"number":23,"title":"DOM/Element media query callbacks support","user":{"login":"chemerisuk","id":274044,"avatar_url":"https://avatars.githubusercontent.com/u/274044?v=3","gravatar_id":"","url":"https://api.github.com/users/chemerisuk","html_url":"https://github.com/chemerisuk","followers_url":"https://api.github.com/users/chemerisuk/followers","following_url":"https://api.github.com/users/chemerisuk/following{/other_user}","gists_url":"https://api.github.com/users/chemerisuk/gists{/gist_id}","starred_url":"https://api.github.com/users/chemerisuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chemerisuk/subscriptions","organizations_url":"https://api.github.com/users/chemerisuk/orgs","repos_url":"https://api.github.com/users/chemerisuk/repos","events_url":"https://api.github.com/users/chemerisuk/events{/privacy}","received_events_url":"https://api.github.com/users/chemerisuk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-09-28T09:07:33Z","updated_at":"2015-06-29T15:03:14Z","closed_at":"2015-06-29T15:03:14Z","body":"Described a possible solution at http://www.smashingmagazine.com/2014/02/05/introducing-live-extensions-better-dom-javascript/, but need to determine API and usefulness. May be create a separate extension for it.\r\n\r\n`$Document#media`:\r\n\r\n```js\r\nDOM.media(\"(max-width < 320px)\", function() {\r\n    // media query matched\r\n});\r\n```"}}