mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-17 06:20:26 +00:00
Merge branch 'master' of github.com:jquery/jquery-mobile
Conflicts: js/jQuery.mobile.js
This commit is contained in:
commit
f584e3385f
1 changed files with 0 additions and 20 deletions
|
|
@ -42,27 +42,7 @@
|
|||
*/
|
||||
$.support.orientation = !!window.orientation;
|
||||
|
||||
//ajax support: to use bbq-style navigation with external pages, we will need to first test for ajax support (and fall back to normal urls)
|
||||
//note: maybe core should be updated with this support property?
|
||||
$.support.ajax = (function(){
|
||||
//factory test borrowed from quirksmode.org
|
||||
var xmlhttp = false, index = -1, factory,
|
||||
XMLHttpFactories = [
|
||||
function() { return new XMLHttpRequest() },
|
||||
function() { return new ActiveXObject("Msxml2.XMLHTTP") },
|
||||
function() { return new ActiveXObject("Msxml3.XMLHTTP") },
|
||||
function() { return new ActiveXObject("Microsoft.XMLHTTP") }
|
||||
];
|
||||
while ((factory = XMLHttpFactories[++index])) {
|
||||
try { xmlhttp = factory(); }
|
||||
catch (e) { continue; }
|
||||
break;
|
||||
}
|
||||
return !!xmlhttp;
|
||||
})();
|
||||
|
||||
/* Some CSS capability tests from EnhanceJS -- in the vein of $.support.boxmodel -- almost certainly needed for widgets to work
|
||||
* note: assuming they work in Firefox 4, these can run without domready (currently FF4 beta won't report these offset dimensions before body is present)
|
||||
*/
|
||||
//test CSS display none
|
||||
$.support.display = (function(){
|
||||
|
|
|
|||
Loading…
Reference in a new issue