From 9c759b804d63b363c5682dd3394c2e7268878db0 Mon Sep 17 00:00:00 2001 From: scottjehl Date: Mon, 13 Sep 2010 16:20:06 -0400 Subject: [PATCH] commented out matchMedia logic for later --- js/jQuery.mobile.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/jQuery.mobile.js b/js/jQuery.mobile.js index ee779bd0..60b20856 100644 --- a/js/jQuery.mobile.js +++ b/js/jQuery.mobile.js @@ -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 = $('
'), fakeBody = $('').append(testDiv);