We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47e6d04 commit a625df3Copy full SHA for a625df3
experiments/splitview/jquery.mobile.splitview.js
@@ -5,7 +5,9 @@
5
if($.support.touch){
6
$('html').addClass('touch');
7
}
8
- if ($.mobile.media("screen and (min-width:480px)")||($.mobile.browser.ie && $(this).width() >= 480)) {
+ var $query = $.mobile.media('screen and (min-width: 480px)') && ($.mobile.media('(-webkit-max-device-pixel-ratio: 1.2)') || $.mobile.media('max--moz-device-pixel-ratio: 1.2)'));
9
+ $.support.splitview = ($query || ($.mobile.browser.ie && $(this).width() >= 480)) && $.mobile.ajaxEnabled;
10
+ if ($.support.splitview) {
11
$('html').addClass('splitview');
12
//on window.ready() execution:
13
$(function() {
0 commit comments