mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-01 13:40:22 +00:00
gradeA test was missed in the update. back in now, with IE 6+ enabled.
This commit is contained in:
parent
aa31e01d63
commit
8cb9923055
1 changed files with 10 additions and 1 deletions
|
|
@ -54,7 +54,16 @@
|
|||
|
||||
//support conditions that must be met in order to proceed
|
||||
gradeA: function(){
|
||||
return $.support.mediaquery;
|
||||
|
||||
//non-UA-based IE version check by James Padolsey, modified by jdalton - from http://gist.github.com/527683
|
||||
//allows for inclusion of IE 6+, including Windows Mobile 7
|
||||
var ie = (function() {
|
||||
var v = 3, div = document.createElement('div'), a = div.all || [];
|
||||
while (div.innerHTML = '<!--[if gt IE '+(++v)+']><br><![endif]-->', a[0]);
|
||||
return v > 4 ? v : !v;
|
||||
}());
|
||||
|
||||
return $.support.mediaquery || ie && ie >= 6;
|
||||
},
|
||||
|
||||
//TODO might be useful upstream in jquery itself ?
|
||||
|
|
|
|||
Loading…
Reference in a new issue