mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-08 22:54:50 +00:00
commented out matchMedia logic for later
This commit is contained in:
parent
142cffdfc2
commit
9c759b804d
1 changed files with 5 additions and 2 deletions
|
|
@ -126,10 +126,13 @@
|
|||
|
||||
//test whether a CSS media type or query applies (adapted from work by Scott Jehl & Paul Irish: http://gist.github.com/557891)
|
||||
$.media = (function(){
|
||||
if ( (window.media && media.matchMedium) ){
|
||||
/*
|
||||
note: once support improves, try window.matchMedia here
|
||||
if ( window.matchMedia ){
|
||||
//use native support if available
|
||||
return media.matchMedium;
|
||||
return window.matchMedia;
|
||||
}
|
||||
*/
|
||||
var cache = {},
|
||||
testDiv = $('<div id="jq-mediatest"></div>'),
|
||||
fakeBody = $('<body></body>').append(testDiv);
|
||||
|
|
|
|||
Loading…
Reference in a new issue